From 7cd194fffb9a0a828af8371684aca07fc59ea50f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20A=C3=9Fmus?= Date: Fri, 24 Apr 2009 14:14:52 +0000 Subject: [PATCH] If Deskbar is not running, prevent minimizing (untested). git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30373 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/apps/drivesetup/Jamfile | 2 +- src/apps/drivesetup/MainWindow.cpp | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/apps/drivesetup/Jamfile b/src/apps/drivesetup/Jamfile index bd85b21ee7..0eba2d5d2e 100644 --- a/src/apps/drivesetup/Jamfile +++ b/src/apps/drivesetup/Jamfile @@ -2,7 +2,7 @@ SubDir HAIKU_TOP src apps drivesetup ; AddSubDirSupportedPlatforms libbe_test ; -UsePrivateHeaders interface shared storage ; +UsePrivateHeaders interface shared storage tracker ; Preference DriveSetup : DiskView.cpp diff --git a/src/apps/drivesetup/MainWindow.cpp b/src/apps/drivesetup/MainWindow.cpp index 41dab3d7e1..7082860331 100644 --- a/src/apps/drivesetup/MainWindow.cpp +++ b/src/apps/drivesetup/MainWindow.cpp @@ -13,6 +13,7 @@ #include "InitParamsPanel.h" #include "PartitionList.h" #include "Support.h" +#include "tracker_private.h" #include #include @@ -233,6 +234,9 @@ MainWindow::MainWindow(BRect frame) // visit all disks in the system and show their contents _ScanDrives(); + + if (!be_roster->IsRunning(kDeskbarSignature)) + SetFlags(Flags() | B_NOT_MINIMIZABLE) }