TOP Items
+- Course edit does not store the changes
TODO General:
+
+- If course is in the score but not in course, navogating away from
+ the score not possible. Editing the score core dumps.
- Statistics view (BIG)
- Delete score
- Delete course
-This package was debianized by unknown <gnuton@gnuton.org> on
+This package was debianized by Sakari Poussa <spoussa@gmail.com> on
Wed, 13 Aug 2008 14:17:22 +0300.
It was downloaded from <fill in http/ftp site>
-Upstream Author: <put author(s) name and email here>
+Upstream Author: Sakari Poussa spoussa(at)gmail.com
-Copyright: <put the year(s) of the copyright, and the names of the
- copyright holder(s) here>
+Copyright: 2009 Sakari Poussa
-License:
+License: GPLv2
-<Put the license of the package here>
-
-
-The Debian packaging is (C) 2008, unknown <gnuton@gnuton.org> and
-is licensed under the GPL, see `/usr/share/common-licenses/GPL'.
-
-
-# Please also look if there are files or directories which have a
-# different copyright/license attached and list them here.
{
bool external = false;
-#ifndef Q_WS_HILDON
- topDir = ".";
-#endif
-
QDir mmc(mmcDir);
if (mmc.exists())
external = true;
// TODO: make via user option, automatic will never work
external = false;
+#ifndef Q_WS_HILDON
+ dataDir = "./" + dataDirName;
+#else
if (external) {
dataDir = mmcDir + "/" + appName + "/" + dataDirName;
}
else {
dataDir = topDir + "/" + appName + "/" + dataDirName;
}
+#endif
scoreFile = dataDir + "/" + scoreFileName;
clubFile = dataDir + "/" + clubFileName;
{
Course *course = scoreTableModel->getCourse();
+ if (!course) {
+ qWarning() << "No course on edit";
+ return;
+ }
+
CourseDialog *courseDialog = new CourseDialog(this);
courseDialog->init(course);