summaryrefslogtreecommitdiff
path: root/muse2/muse/app.cpp
diff options
context:
space:
mode:
authorRobert Jonsson <spamatica@gmail.com>2011-01-15 22:54:12 +0000
committerRobert Jonsson <spamatica@gmail.com>2011-01-15 22:54:12 +0000
commitdfc1ba699f837700a005a218da56e17016965f4d (patch)
treeab8340a4ee4f202f4f70f0eabcfa87d55bee15a6 /muse2/muse/app.cpp
parent50e1ec05dd9034a7d328a5f3f27979a3d32c7706 (diff)
project dialog optional and rec wave bug fixed
Diffstat (limited to 'muse2/muse/app.cpp')
-rw-r--r--muse2/muse/app.cpp23
1 files changed, 16 insertions, 7 deletions
diff --git a/muse2/muse/app.cpp b/muse2/muse/app.cpp
index 2c4758a6..9760aea9 100644
--- a/muse2/muse/app.cpp
+++ b/muse2/muse/app.cpp
@@ -435,7 +435,8 @@ bool MusE::seqStart()
if (midiSeqRunning)
break;
usleep(1000);
- printf("looping waiting for sequencer thread to start\n");
+ if(debugMsg)
+ printf("looping waiting for sequencer thread to start\n");
}
if(!midiSeqRunning)
{
@@ -3158,13 +3159,21 @@ bool MusE::saveAs()
{
QString name;
if (museProject == museProjectInitPath ) {
- ProjectCreateImpl pci(muse);
- if (pci.exec() == QDialog::Rejected) {
- return false;
- }
+ printf("config.useProjectSaveDialog=%d\n", config.useProjectSaveDialog);
+ if (config.useProjectSaveDialog) {
+ ProjectCreateImpl pci(muse);
+ if (pci.exec() == QDialog::Rejected) {
+ return false;
+ }
+
+ song->setSongInfo(pci.getSongInfo());
+ name = pci.getProjectPath();
+ } else {
+ name = getSaveFileName(QString(""), med_file_save_pattern, this, tr("MusE: Save As"));
+ if (name.isEmpty())
+ return false;
+ }
- name = pci.getProjectPath();
- song->setSongInfo(pci.getSongInfo());
museProject = QFileInfo(name).absolutePath();
QDir dirmanipulator;
if (!dirmanipulator.mkpath(museProject)) {