|
From: Tapio V. <aa...@us...> - 2011-02-01 09:54:53
|
Module: editor
Branch: master
Commit: b443f8be7d994bdb1ec149725d41628557e20eb8
Author: Tapio Vierros <tap...@gm...>
Date: Tue Feb 1 11:52:56 2011 +0200
Make GettingStarted dialog run asynchronously.
---
editorapp.cc | 6 +++---
editorapp.hh | 2 ++
2 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/editorapp.cc b/editorapp.cc
index 7e03dba..20acc4b 100644
--- a/editorapp.cc
+++ b/editorapp.cc
@@ -25,7 +25,7 @@ namespace {
static const QDataStream::Version PROJECT_SAVE_FILE_STREAM_VERSION = QDataStream::Qt_4_7;
}
-EditorApp::EditorApp(QWidget *parent): QMainWindow(parent), projectFileName(), hasUnsavedChanges(), latestPath(QDir::homePath())
+EditorApp::EditorApp(QWidget *parent): QMainWindow(parent), gettingStarted(), projectFileName(), hasUnsavedChanges(), latestPath(QDir::homePath())
{
ui.setupUi(this);
readSettings();
@@ -480,8 +480,8 @@ void EditorApp::on_actionLyricsFromClipboard_triggered()
void EditorApp::on_actionGettingStarted_triggered()
{
- GettingStartedDialog dialog(this);
- dialog.exec();
+ if (!gettingStarted) gettingStarted = new GettingStartedDialog(this);
+ gettingStarted->show();
}
void EditorApp::on_actionWhatsThis_triggered()
diff --git a/editorapp.hh b/editorapp.hh
index f754d19..0b6c607 100644
--- a/editorapp.hh
+++ b/editorapp.hh
@@ -10,6 +10,7 @@ class QProgressBar;
class QCloseEvent;
class NoteLabel;
class NoteGraphWidget;
+class GettingStartedDialog;
namespace Phonon {
class MediaObject;
class AudioOutput;
@@ -100,6 +101,7 @@ protected:
private:
Ui::EditorApp ui;
+ GettingStartedDialog *gettingStarted;
NoteGraphWidget *noteGraph;
OperationStack opStack;
OperationStack redoStack;
|