pause if preferences dialog is open, fixes #413

This commit is contained in:
itsmattkc
2019-02-03 20:29:15 +11:00
parent dc901ca8ff
commit 1111b6a89b
2 changed files with 5 additions and 3 deletions
+1 -1
View File
@@ -31,7 +31,7 @@ class PreferencesDialog : public QDialog
Q_OBJECT
public:
explicit PreferencesDialog(QWidget *parent = 0);
explicit PreferencesDialog(QWidget *parent = nullptr);
~PreferencesDialog();
void setup_kbd_shortcuts(QMenuBar* menu);
+4 -2
View File
@@ -1239,8 +1239,10 @@ void MainWindow::maximize_panel() {
}
}
void MainWindow::preferences()
{
void MainWindow::preferences() {
panel_sequence_viewer->pause();
panel_footage_viewer->pause();
PreferencesDialog pd(this);
pd.setup_kbd_shortcuts(menuBar());
pd.exec();