Fix crash with some setups

Initialize Qt earlier, before Gtk gets its hands on argc / argv.

Suggested-by: Tomaz Canabrava <tcanabrava@kde.org>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2013-04-22 06:45:57 -07:00
parent 26076610e5
commit 5da11cbc6a

View file

@ -1866,7 +1866,6 @@ QStringList MainWindow::fileNameFilters() const
void init_qt_ui(int *argcp, char ***argvp)
{
application = new QApplication(*argcp, *argvp);
application->installTranslator(new Translator(application));
MainWindow *window = new MainWindow();
window->show();
@ -1874,6 +1873,7 @@ void init_qt_ui(int *argcp, char ***argvp)
void init_ui(int *argcp, char ***argvp)
{
application = new QApplication(*argcp, *argvp);
GtkWidget *win;
GtkWidget *nb_page;
GtkWidget *dive_list;