Try to fix #3132 by making sure every file chooser dialog is given an appropriate parent window.

This commit is contained in:
Adam Reichold
2016-02-06 14:59:02 +01:00
parent f6cb2579d0
commit 4b9bc5be88
8 changed files with 15 additions and 10 deletions

View File

@@ -943,7 +943,7 @@ void ICMPanel::saveReferencePressed ()
return;
}
Gtk::FileChooserDialog dialog(M("TP_ICM_SAVEREFERENCE"), Gtk::FILE_CHOOSER_ACTION_SAVE);
Gtk::FileChooserDialog dialog (getToplevelWindow (this), M("TP_ICM_SAVEREFERENCE"), Gtk::FILE_CHOOSER_ACTION_SAVE);
bindCurrentFolder (dialog, options.lastProfilingReferenceDir);
dialog.set_current_name (lastRefFilename);