From f072065b7aea720a1f064e50db68d80aa071c714 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Heli=20Hyv=C3=A4ttinen?= Date: Tue, 24 May 2011 19:05:12 +0300 Subject: [PATCH] Changes done while in scratchbox Now creates the default save directory when installed and chowns it to the user "user" Updated the changelog --- debian/changelog | 8 ++++++++ debian/kitchenalert.postinst | 4 ++++ src/kitchenalertmainwindow.cpp | 4 +++- 3 files changed, 15 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index d305d25..9980a47 100755 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,11 @@ +kitchenalert (0.3.0-1) unstable; urgency=low + + * a timer can now be saved to a file and loaded from it + * when removing a timer from the list, the selection is cleared ("restart" and "stop" buttons no longer active after last alert has been removed) + * "new timer" button now reacts to "clicking" (pressing and releasing) instead of just pressing for consistency with other buttons + + -- Heli Hyvättinen Mon, 9 May 2011 16:40:44 +0300 + kitchenalert (0.2.1-1) unstable; urgency=low * restored the ability to change the alert sound when there are no alerts in the list (closes #6857) diff --git a/debian/kitchenalert.postinst b/debian/kitchenalert.postinst index 908ae73..aa3a41a 100644 --- a/debian/kitchenalert.postinst +++ b/debian/kitchenalert.postinst @@ -34,6 +34,10 @@ group = alarm" >> /usr/share/policy/etc/current/pulse/xpolicy.conf stop pulseaudio start pulseaudio +# give the default save directory to user "user" so it can be written to from the application +# (autocreating with kitchenalert.dirs gives it to root with no access rights to user) +chown user /home/user/KitchenAlert + fi exit 0 diff --git a/src/kitchenalertmainwindow.cpp b/src/kitchenalertmainwindow.cpp index 56783c4..0c3194b 100644 --- a/src/kitchenalertmainwindow.cpp +++ b/src/kitchenalertmainwindow.cpp @@ -45,13 +45,15 @@ #include #include - const QString defaultSaveDirectory_ = "/home/user/MyDocs/KitchenAlert/"; + KitchenAlertMainWindow::KitchenAlertMainWindow(QWidget *parent) : QMainWindow(parent), ui(new Ui::KitchenAlertMainWindow) { + + defaultSaveDirectory_ = "/home/user/KitchenAlert"; ui->setupUi(this); -- 1.7.9.5