crash without bt on Dirk/Qt

Dirk Hohndel dirk at hohndel.org
Mon Apr 22 06:50:24 PDT 2013


Tomaz Canabrava <tcanabrava at kde.org> writes:

> confirmed, this simple patch fixed it on my Work PC.
>
> diff --git a/qt-gui.cpp b/qt-gui.cpp
> index 86731bb..5da1407 100644
> --- a/qt-gui.cpp
> +++ b/qt-gui.cpp
> @@ -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;
>
>
> Dirk, can you apply this on your branch, pretty please?

How could I not since you said 'pretty please'. :-)

I just pushed this. You didn't sign off the patch so I commited it as
mine, suggested by you (it's so trivial that none of this should matter,
anyway).

I hope this gets you going again.

I'll look at the other patch that you sent yesterday - it moves a lot of
code around so I want to stare at it a moment longer. First I need to
make breakfast for my daughters.

/D


More information about the subsurface mailing list