aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-qtopia/shopper/shopper-1.2.1/path_fix.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-qtopia/shopper/shopper-1.2.1/path_fix.patch')
-rw-r--r--recipes-qtopia/shopper/shopper-1.2.1/path_fix.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/recipes-qtopia/shopper/shopper-1.2.1/path_fix.patch b/recipes-qtopia/shopper/shopper-1.2.1/path_fix.patch
new file mode 100644
index 0000000..d8142c7
--- /dev/null
+++ b/recipes-qtopia/shopper/shopper-1.2.1/path_fix.patch
@@ -0,0 +1,23 @@
+--- Shopper/shoplist.cpp 2008-11-17 21:09:26.000000000 +0000
++++ Shopper/shoplist.cpp 2008-11-17 22:21:12.000000000 +0000
+@@ -38,6 +38,7 @@
+ #include <qmessagebox.h>
+ #include <qregexp.h>
+
++#include <stdlib.h>
+
+ // TODO: Somewhere it should say:
+ // if (mode == ShoppingItem::Left && nothing_left) {
+@@ -229,6 +230,12 @@
+ QString fileName = Global::applicationFileName("ShoppingListQt", "shoppinglist.xml");
+
+ QFile file( fileName );
++ if ( ! file.exists() ) {
++ // Ugly hack
++ QString cmd = QString("cp " SHOPPER_DATADIR "/shoppinglist.xml ") + fileName;
++ system(cmd);
++ }
++
+ _startCategory = static_cast<CategoryItem*>(_showAllAction);
+ // If there's a file - read it. If not then we drop through to do
+ // other initialisation.