diff --git a/main.cpp b/main.cpp index 61fc82cca..0634f98c9 100644 --- a/main.cpp +++ b/main.cpp @@ -12,7 +12,7 @@ int main(int argc, char *argv[]) // QCoreApplication::setAttribute(Qt::AA_ShareOpenGLContexts, true); - QApplication a(argc, argv); + QApplication a(argc, argv); MainWindow w; w.show(); diff --git a/mainwindow.cpp b/mainwindow.cpp index d243b2a4c..b9419688e 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -323,7 +323,15 @@ bool MainWindow::save_project() { bool MainWindow::can_close_project() { if (project_changed) { - int r = QMessageBox::question(this, "Unsaved Project", "This project has changed since it was last saved. Would you like to save it before closing?", QMessageBox::Yes|QMessageBox::No|QMessageBox::Cancel, QMessageBox::Yes); + QMessageBox* m = new QMessageBox( + QMessageBox::Question, + "Unsaved Project", + "This project has changed since it was last saved. Would you like to save it before closing?", + QMessageBox::Yes|QMessageBox::No|QMessageBox::Cancel, + this + ); + m->setWindowModality(Qt::WindowModal); + int r = m->exec(); if (r == QMessageBox::Yes) { return save_project(); } else if (r == QMessageBox::Cancel) { @@ -426,6 +434,10 @@ void MainWindow::on_actionCrash_triggered() // intentionally tries to crash the program - mostly used for debugging Timeline* temp = NULL; temp->snapped = true; + int* kek; + kek[5] = 69; + kek[99999] = 420; + delete temp; } } diff --git a/olive.pro b/olive.pro index 5b70bd5c5..682d07435 100644 --- a/olive.pro +++ b/olive.pro @@ -8,7 +8,7 @@ QT += core gui multimedia opengl greaterThan(QT_MAJOR_VERSION, 4): QT += widgets -TARGET = olive +TARGET = Olive TEMPLATE = app # The following define makes your compiler emit warnings if you use @@ -123,6 +123,7 @@ win32 { } mac { + LIBS += -L/usr/local/lib -lavutil -lavformat -lavcodec -lswscale -lswresample INCLUDEPATH = /usr/local/include } diff --git a/panels/viewer.ui b/panels/viewer.ui index 7a748347c..f850d20c7 100644 --- a/panels/viewer.ui +++ b/panels/viewer.ui @@ -104,183 +104,48 @@ true - - - 0 - 0 - - - - - 36 - 0 - - - - - 16777215 - 16777215 - - - - - :/icons/prev.png :/icons/prev-disabled.png:/icons/prev.png - - - 14 - 14 - - - - - 0 - 0 - - - - - 36 - 0 - - - - - 16777215 - 16777215 - - - - - :/icons/rew.png :/icons/rew-disabled.png:/icons/rew.png - - - 14 - 14 - - - - - 0 - 0 - - - - - 36 - 0 - - - - - 16777215 - 16777215 - - - - - :/icons/play.png :/icons/play-disabled.png:/icons/play.png - - - 14 - 14 - - - - - 0 - 0 - - - - - 36 - 0 - - - - - 16777215 - 16777215 - - - - - :/icons/ff.png :/icons/ff-disabled.png - - - 14 - 14 - - - - - 0 - 0 - - - - - 36 - 0 - - - - - 16777215 - 16777215 - - - - - :/icons/next.png :/icons/next-disabled.png:/icons/next.png - - - 14 - 14 - -