Some comments about heap-objects and cleaning up some heap-objects.
[emufront] / src / dialogs / mediaimagepathdialog.cpp
index ea8276d..facdf1a 100644 (file)
@@ -100,6 +100,7 @@ void MediaImagePathDialog::setSelectedSetup(const Setup *sup)
     setupComBox->setSelected(sup);
 }
 
+/* Returns a pointer to Setup object which must be deleted by calling code */
 Setup* MediaImagePathDialog::getSelectedSetup()
 {
     EmuFrontObject *ob = 0;
@@ -108,7 +109,7 @@ Setup* MediaImagePathDialog::getSelectedSetup()
         ob = setupComBox->getSelected();
     }
     catch(EmuFrontException &e){
-        QMessageBox::warning(this, "Exception", e.what());
+        errorMessage->showMessage(e.what());
     }
 
     if (!ob) return 0;