X-Git-Url: http://vcs.maemo.org/git/?a=blobdiff_plain;ds=inline;f=code%2Ffamily-shop-mgr%2FShoppingTreeModel.cpp;h=20852e43bde92db25d1a952526d09e7d6bbe1afc;hb=776675464c69ead9c75a9c326ca707326b91f4cf;hp=1d0120df3583ed1b327a2f6d4e627aa98f735a07;hpb=dbe34281fb0d5f7e6d0ffd8a8df03c49e47d0381;p=family-shop-mgr diff --git a/code/family-shop-mgr/ShoppingTreeModel.cpp b/code/family-shop-mgr/ShoppingTreeModel.cpp index 1d0120d..20852e4 100644 --- a/code/family-shop-mgr/ShoppingTreeModel.cpp +++ b/code/family-shop-mgr/ShoppingTreeModel.cpp @@ -23,6 +23,7 @@ #include "ShoppingTreeItem.h" #include +#include #include ShoppingTreeModel::ShoppingTreeModel(const QString &xmlFileName, @@ -33,7 +34,7 @@ QAbstractItemModel(parent), m_document("ShoppingList") int errLine; int errColumn; - m_xmlFileName = xmlFileName; + m_xmlFileName = QApplication::applicationDirPath() + "/" + xmlFileName; QFile file(m_xmlFileName); if(!file.open(QIODevice::ReadOnly)) return;