This commit is contained in:
itsmattkc
2019-02-15 20:45:54 -08:00
parent c477e0dd80
commit eb792d8cd6
3 changed files with 15 additions and 5 deletions
+1 -1
View File
@@ -1,3 +1,3 @@
# A simple script to extract the Git hash from an auto-generated debian/changelog
grep -Po '(?<=-)(([a-z0-9])\w+)(?=\+)' $1
grep -Po '(?<=-)(([a-z0-9])\w+)(?=\+)' -m 1 $1
+13 -3
View File
@@ -47,6 +47,7 @@
#include <QMessageBox>
#include <QAudioDeviceInfo>
#include <QApplication>
#include <QProcess>
#include <QDebug>
KeySequenceEditor::KeySequenceEditor(QWidget* parent, QAction* a)
@@ -193,8 +194,8 @@ void PreferencesDialog::save() {
int ret = QMessageBox::question(this,
"Restart Required",
"Some of the changed settings will require a restart of Olive. Would you like to"
"restart now?",
"Some of the changed settings will require a restart of Olive. Would you like "
"to restart now?",
QMessageBox::Yes | QMessageBox::No | QMessageBox::Cancel);
if (ret == QMessageBox::Cancel) {
@@ -283,7 +284,16 @@ void PreferencesDialog::save() {
init_audio();
}
accept();
accept();
if (restart_after_saving) {
// since we already ran can_close_project(), bypass checking again by running setWindowModified(false)
Olive::MainWindow->setWindowModified(false);
Olive::MainWindow->close();
QProcess::startDetached(QApplication::applicationFilePath(), { Olive::ActiveProjectFilename });
}
}
void PreferencesDialog::reset_default_shortcut() {
+1 -1
View File
@@ -810,8 +810,8 @@ void MainWindow::paintEvent(QPaintEvent *event) {
QMainWindow::paintEvent(event);
if (first_show) {
emit finished_first_paint();
first_show = false;
emit finished_first_paint();
}
}