Disable OFX import for win32

This commit is contained in:
Grégory Soutadé 2012-05-31 19:54:26 +02:00
parent 112c2e7d85
commit e60cabc0ff
4 changed files with 15 additions and 2 deletions

View File

@ -92,7 +92,11 @@ public:
Database(const char* filename, KissCount* kiss);
#ifdef WIN32
static QString GetDatabaseHome() { return "./" BDD_PATH; }
#else
static QString GetDatabaseHome() { return QDir::home().path() + BDD_PATH; }
#endif
static QString GetDatabaseFile() { return QString(BDD_FILE); }
std::list<QString> GetUsers();

View File

@ -16,6 +16,9 @@
You should have received a copy of the GNU General Public License
along with KissCount. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef WIN32
#include "../Database.hpp"
#include <compat.hpp>
@ -159,3 +162,5 @@ bool OFXImportEngine::HandleFile(const QString& path, User* user, Database* db,
return res;
}
#endif

View File

@ -20,6 +20,8 @@
#ifndef OFXIMPORTENGINE_H
#define OFXIMPORTENGINE_H
#ifndef WIN32
#include "ImportEngine.hpp"
#include <libofx/libofx.h>
@ -42,3 +44,5 @@ private:
};
#endif
#endif

View File

@ -38,8 +38,8 @@ SnapshotsDialog::SnapshotsDialog(KissCount* kiss, wxUI *parent) : QDialog(0, Qt:
hbox->addWidget(_snapshots);
QPushButton* buttonCreate = new QPushButton(_("Create snapshot"));
QPushButton* buttonDelete = new QPushButton(_("Delete snapshot"));
QPushButton* buttonCreate = new QPushButton(_("Create a snapshot"));
QPushButton* buttonDelete = new QPushButton(_("Delete a snapshot"));
QPushButton* buttonBackTo = new QPushButton(_("Back to this snapshot"));
connect(buttonCreate, SIGNAL(clicked()), this, SLOT(OnCreate()));