X-Git-Url: http://vcs.maemo.org/git/?a=blobdiff_plain;f=src%2Fmainwindow.cpp;h=c06633d45ed850f8679874f7ddd278f6df0b585a;hb=2553c1783d0e375903ffff23c6cfe6bf63e008a3;hp=25da5ad3749e05064f9c24f47a30fed11015fe3e;hpb=175147c0f28d4a7880bcc24dd1a789d33b7c537b;p=emufront diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 25da5ad..c06633d 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -39,6 +39,7 @@ #include "databasemanager.h" #include "dbcreator.h" #include "dbconfig.h" +#include "setupmodel.h" QString MainWindow::aboutStr = trUtf8( "

EmuFront

" @@ -60,7 +61,8 @@ MainWindow::MainWindow(bool reset) if (tmpDirFilePath.isEmpty()) tmpDirFilePath = QDir::homePath(); qDebug() << "Temporary dir is " << tmpDirFilePath; - launcher = new EmuLauncher(errorMessage, this, tmpDirFilePath); + supModel = new SetupModel(this); + launcher = new EmuLauncher(errorMessage, supModel, this, tmpDirFilePath); setCentralWidget(launcher); createActions(); createMenus(); @@ -234,9 +236,10 @@ void MainWindow::configureMediaImagePathss() void MainWindow::configureSetupss() { + //TODO: maybe a common setup model in MainWindow, so the data would be in sync without refresh with updateData! if (!setupMainView) { - setupMainView = new SetupEditView(this); - connect(setupMainView, SIGNAL(finished(int)), this, SLOT(updateData())); + setupMainView = new SetupEditView(supModel, this); + //connect(setupMainView, SIGNAL(finished(int)), this, SLOT(updateData())); } activateDialog(setupMainView); }