Commit 5999fee0 authored by Hugo Beauzee-Luyssen's avatar Hugo Beauzee-Luyssen

Tools->crash isn't activated by default.

parent 8156c499
......@@ -91,6 +91,9 @@ MainWindow::MainWindow( QWidget *parent ) :
createGlobalPreferences();
createProjectPreferences();
initializeMenuKeyboardShortcut();
#ifdef DEBUG_CRASHHANDLER
setupCrashTester();
#endif
// Translations
connect( this, SIGNAL( translateDockWidgetTitle() ),
......@@ -550,3 +553,14 @@ void MainWindow::on_actionImport_triggered()
{
m_importController->exec();
}
#ifdef DEBUG_CRASHHANDLER
void MainWindow::setupCrashTester()
{
QAction* actionCrash = new QAction( this );
actionCrash->setObjectName( QString::fromUtf8( "actionCrash" ) );
m_ui.menuTools->addAction( actionCrash );
actionCrash->setText( QApplication::translate( "MainWindow", "Crash", 0, QApplication::UnicodeUTF8 ) );
connect( actionCrash, SIGNAL( triggered( bool ) ), this, SLOT( on_actionCrash_triggered() ) );
}
#endif
......@@ -64,6 +64,9 @@ private:
void createGlobalPreferences();
void createProjectPreferences();
void initializeMenuKeyboardShortcut();
#ifdef DEBUG_CRASHHANDLER
void setupCrashTester();
#endif
/**
* \brief Will check if vlmc closed nicely or crashed.
* If so, the emergency backup will be opened.
......
......@@ -73,7 +73,6 @@
<string>Tools</string>
</property>
<addaction name="actionTranscode"/>
<addaction name="actionCrash"/>
</widget>
<widget class="QMenu" name="menuWindow">
<property name="title">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment