From 6abaa36fba3268d3f9127c312771b3bd07dcc771 Mon Sep 17 00:00:00 2001 From: "David A. Cuadrado" Date: Mon, 5 Nov 2007 16:42:00 -0500 Subject: [PATCH] Tips --- src/shell/mainwindow.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/shell/mainwindow.cpp b/src/shell/mainwindow.cpp index 4c97806..f84dc8c 100644 --- a/src/shell/mainwindow.cpp +++ b/src/shell/mainwindow.cpp @@ -25,6 +25,7 @@ #include #include #include +#include // YAMF #include @@ -374,6 +375,7 @@ bool MainWindow::openProject(const QString &filePath) { if(!closeProject()) return false; + setUpdatesEnabled(false); if( m_projectManager->loadProject(filePath) ) { { @@ -388,9 +390,11 @@ bool MainWindow::openProject(const QString &filePath) m_actionManager->find("showchatwindow")->setVisible(false); + setUpdatesEnabled(true); return true; } + setUpdatesEnabled(true); return false; } @@ -534,6 +538,13 @@ void MainWindow::loadLastProject() { openProject(lastProject); } + + DGui::TipDialog dialog; + + if( dialog.showOnStart() ) + { + dialog.exec(); + } } // EDIT -- 2.11.4.GIT