Disable OFX import for win32
This commit is contained in:
parent
112c2e7d85
commit
e60cabc0ff
|
@ -92,7 +92,11 @@ public:
|
||||||
|
|
||||||
Database(const char* filename, KissCount* kiss);
|
Database(const char* filename, KissCount* kiss);
|
||||||
|
|
||||||
|
#ifdef WIN32
|
||||||
|
static QString GetDatabaseHome() { return "./" BDD_PATH; }
|
||||||
|
#else
|
||||||
static QString GetDatabaseHome() { return QDir::home().path() + BDD_PATH; }
|
static QString GetDatabaseHome() { return QDir::home().path() + BDD_PATH; }
|
||||||
|
#endif
|
||||||
static QString GetDatabaseFile() { return QString(BDD_FILE); }
|
static QString GetDatabaseFile() { return QString(BDD_FILE); }
|
||||||
|
|
||||||
std::list<QString> GetUsers();
|
std::list<QString> GetUsers();
|
||||||
|
|
|
@ -16,6 +16,9 @@
|
||||||
You should have received a copy of the GNU General Public License
|
You should have received a copy of the GNU General Public License
|
||||||
along with KissCount. If not, see <http://www.gnu.org/licenses/>.
|
along with KissCount. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#ifndef WIN32
|
||||||
|
|
||||||
#include "../Database.hpp"
|
#include "../Database.hpp"
|
||||||
#include <compat.hpp>
|
#include <compat.hpp>
|
||||||
|
|
||||||
|
@ -159,3 +162,5 @@ bool OFXImportEngine::HandleFile(const QString& path, User* user, Database* db,
|
||||||
|
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
|
@ -20,6 +20,8 @@
|
||||||
#ifndef OFXIMPORTENGINE_H
|
#ifndef OFXIMPORTENGINE_H
|
||||||
#define OFXIMPORTENGINE_H
|
#define OFXIMPORTENGINE_H
|
||||||
|
|
||||||
|
#ifndef WIN32
|
||||||
|
|
||||||
#include "ImportEngine.hpp"
|
#include "ImportEngine.hpp"
|
||||||
#include <libofx/libofx.h>
|
#include <libofx/libofx.h>
|
||||||
|
|
||||||
|
@ -42,3 +44,5 @@ private:
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
|
@ -38,8 +38,8 @@ SnapshotsDialog::SnapshotsDialog(KissCount* kiss, wxUI *parent) : QDialog(0, Qt:
|
||||||
|
|
||||||
hbox->addWidget(_snapshots);
|
hbox->addWidget(_snapshots);
|
||||||
|
|
||||||
QPushButton* buttonCreate = new QPushButton(_("Create snapshot"));
|
QPushButton* buttonCreate = new QPushButton(_("Create a snapshot"));
|
||||||
QPushButton* buttonDelete = new QPushButton(_("Delete snapshot"));
|
QPushButton* buttonDelete = new QPushButton(_("Delete a snapshot"));
|
||||||
QPushButton* buttonBackTo = new QPushButton(_("Back to this snapshot"));
|
QPushButton* buttonBackTo = new QPushButton(_("Back to this snapshot"));
|
||||||
|
|
||||||
connect(buttonCreate, SIGNAL(clicked()), this, SLOT(OnCreate()));
|
connect(buttonCreate, SIGNAL(clicked()), this, SLOT(OnCreate()));
|
||||||
|
|
Loading…
Reference in New Issue
Block a user