From 3233c0d0f96210b973e485911c4bc84103c593ed Mon Sep 17 00:00:00 2001 From: itsmattkc Date: Mon, 25 Feb 2019 23:47:37 -0800 Subject: [PATCH] fixed segmentation fault on release builds --- mainwindow.cpp | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/mainwindow.cpp b/mainwindow.cpp index 5ffea5b86..851fe8e53 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -212,18 +212,15 @@ MainWindow::MainWindow(QWidget *parent) : } } - // load preferred language from file - olive::Global->load_translation_from_config(); - alloc_panels(this); + // populate menu bars + setup_menus(); + QStatusBar* statusBar = new QStatusBar(this); statusBar->showMessage(tr("Welcome to %1").arg(olive::AppName)); setStatusBar(statusBar); - // populate menu bars - setup_menus(); - olive::Global->check_for_autorecovery_file(); // set up panel layout @@ -235,7 +232,10 @@ MainWindow::MainWindow(QWidget *parent) : // start omnipotent proxy generator process olive::proxy_generator.start(); - // set default window title + // load preferred language from file + olive::Global->load_translation_from_config(); + + // set default strings Retranslate(); } @@ -802,7 +802,9 @@ void MainWindow::Retranslate() smooth_autoscroll->setText(tr("Smooth Auto-Scroll")); preferences_action_->setText(tr("Preferences")); +#ifdef QT_DEBUG clear_undo_action_->setText(tr("Clear Undo")); +#endif help_menu->setTitle(tr("&Help"));