X-Git-Url: http://vcs.maemo.org/git/?a=blobdiff_plain;f=src%2Fmain-window.cpp;h=08e61fd5450b67dc0ab61849d8077bddf26e401f;hb=3a7b84c6a869df89c2e922a1af84bab3e89107f2;hp=154ba3e5ae1115bb599de2f9c9e088f95624e99a;hpb=37e9f2688aca7e941c62d438d44b4f7d21284493;p=scorecard diff --git a/src/main-window.cpp b/src/main-window.cpp index 154ba3e..08e61fd 100644 --- a/src/main-window.cpp +++ b/src/main-window.cpp @@ -252,7 +252,7 @@ void MainWindow::loadSettings(void) // Start of 0.19 migration // Copy existing user data to new location // 0.18 and earlier: score.xml and club.xml are in /opt/scorecard/data - // 0.19 and later: score.xml and club.xml are in /home/user/.scorecard + // 0.19 and later: score.xml and club.xml are in /home/user/MyDocs/.scorecard QString scoreFileOld = dataDir + "/" + scoreFileName; QString clubFileOld = dataDir + "/" + clubFileName; @@ -476,6 +476,8 @@ void MainWindow::newScore() QString title = "New Score: " + courseName + ", " + date; scoreDialog->setWindowTitle(title); + qDebug() << clubName << courseName; + Club *club = findClub(clubName); if (!club) { showNote(tr("No club")); @@ -486,6 +488,7 @@ void MainWindow::newScore() showNote(tr("Error: no such course:")); return; } + scoreDialog->init(course); result = scoreDialog->exec(); if (result) {