]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/dolphinmainwindow.cpp
let the settings dialog be a singleton (thanks to Max Blazejak for the patch!)
[dolphin.git] / src / dolphinmainwindow.cpp
index 489a99327116801dc8b6b1866c6e210aef12550b..2057c05d5ba6b8aa05bc24d2d3da683d3c19fe80 100644 (file)
@@ -950,9 +950,7 @@ void DolphinMainWindow::compareFiles()
 
 void DolphinMainWindow::editSettings()
 {
-    // TODO: make a static method for opening the settings dialog
-    DolphinSettingsDialog dlg(this);
-    dlg.exec();
+    DolphinSettingsDialog::instance(this).exec();
 }
 
 void DolphinMainWindow::init()