diff --git a/desktop-widgets/preferences/preferencesdialog.cpp b/desktop-widgets/preferences/preferencesdialog.cpp index 0af7a78bd..9041668f8 100644 --- a/desktop-widgets/preferences/preferencesdialog.cpp +++ b/desktop-widgets/preferences/preferencesdialog.cpp @@ -18,7 +18,7 @@ PreferencesDialog* PreferencesDialog::instance() { - PreferencesDialog *self = new PreferencesDialog(); + static PreferencesDialog *self = new PreferencesDialog(); return self; }