Tracker: do not start looper when creating a file panel
Should really fix #19499. Change-Id: I66f54f2820261980ebab5f5cfd720632fc8b7c44 Reviewed-on: https://review.haiku-os.org/c/haiku/+/11055 Tested-by: Commit checker robot <[email protected]> Reviewed-by: waddlesplash <[email protected]>
This commit is contained in:
committed by
Adrien Destugues
parent
b5ac9ff15b
commit
7f27e3d426
@@ -381,7 +381,7 @@ AddMimeTypeString(BStringList& list, Model* model)
|
||||
|
||||
|
||||
BContainerWindow::BContainerWindow(LockingList<BWindow>* list, uint32 openFlags, window_look look,
|
||||
window_feel feel, uint32 windowFlags, uint32 workspace, bool useLayout)
|
||||
window_feel feel, uint32 windowFlags, uint32 workspace, bool useLayout, bool runIt)
|
||||
:
|
||||
BWindow(InitialWindowRect(feel), "TrackerWindow", look, feel, windowFlags, workspace),
|
||||
fWindowList(list),
|
||||
@@ -454,7 +454,8 @@ BContainerWindow::BContainerWindow(LockingList<BWindow>* list, uint32 openFlags,
|
||||
|
||||
AddCommonFilter(new BMessageFilter(B_MOUSE_DOWN, ActivateWindowFilter));
|
||||
|
||||
Run();
|
||||
if (runIt)
|
||||
Run();
|
||||
|
||||
// watch out for settings changes
|
||||
TTracker* tracker = dynamic_cast<TTracker*>(be_app);
|
||||
|
||||
@@ -102,7 +102,7 @@ public:
|
||||
window_look look = B_DOCUMENT_WINDOW_LOOK,
|
||||
window_feel feel = B_NORMAL_WINDOW_FEEL,
|
||||
uint32 windowFlags = B_WILL_ACCEPT_FIRST_CLICK | B_NO_WORKSPACE_ACTIVATION,
|
||||
uint32 workspace = B_CURRENT_WORKSPACE, bool useLayout = true);
|
||||
uint32 workspace = B_CURRENT_WORKSPACE, bool useLayout = true, bool runIt = true);
|
||||
|
||||
virtual ~BContainerWindow();
|
||||
|
||||
|
||||
@@ -176,7 +176,7 @@ TFilePanel::TFilePanel(file_panel_mode mode, BMessenger* target, const BEntry* s
|
||||
uint32 openFlags, window_look look, window_feel feel, uint32 windowFlags, uint32 workspace,
|
||||
bool hideWhenDone)
|
||||
:
|
||||
BContainerWindow(0, openFlags, look, feel, windowFlags, workspace, false),
|
||||
BContainerWindow(0, openFlags, look, feel, windowFlags, workspace, false, false),
|
||||
fDirMenu(NULL),
|
||||
fDirMenuField(NULL),
|
||||
fTextControl(NULL),
|
||||
@@ -255,7 +255,6 @@ TFilePanel::TFilePanel(file_panel_mode mode, BMessenger* target, const BEntry* s
|
||||
|
||||
fTaskLoop = new PiggybackTaskLoop;
|
||||
|
||||
AutoLock<BWindow> lock(this);
|
||||
fBorderedView = new BorderedView;
|
||||
CreatePoseView(model);
|
||||
fBorderedView->GroupLayout()->SetInsets(1);
|
||||
|
||||
Reference in New Issue
Block a user