diff options
-rw-r--r-- | Introduction.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/Introduction.cpp b/Introduction.cpp index 1f5550f..d8bfc2a 100644 --- a/Introduction.cpp +++ b/Introduction.cpp @@ -61,7 +61,15 @@ Introduction::Introduction(QWidget *parent) : layout->addWidget(newCompositionBox); QSettings s; - if (!s.childGroups().isEmpty()) { + bool hasExisting = false; + foreach (const QString &title, s.childGroups()) { + const QString key = QString("%1/lastModified").arg(title); + if (s.contains(key)) { + hasExisting = true; + break; + } + } + if (hasExisting) { m_existingCompositionBox = new QGroupBox(tr("Resume an Existing Composition")); QVBoxLayout *existingCompositionBoxLayout = new QVBoxLayout; existingCompositionBoxLayout->setSpacing(0); |