diff options
| author | Riccardo Spagni <ric@spagni.net> | 2016-12-09 00:05:33 +0200 |
|---|---|---|
| committer | Riccardo Spagni <ric@spagni.net> | 2016-12-09 00:05:33 +0200 |
| commit | 0c484ea42474742e1ce8c9203c7f3562a47fc909 (patch) | |
| tree | 8ae41c6d9252d2ecea94c746147015898e9df395 /main.cpp | |
| parent | 35d1e294579e7adffd3beb4a053b3a9a16b8eee5 (diff) | |
| parent | abd5c685af26a1ca44a2437f69f3aa011564298a (diff) | |
| download | monzero-gui-0c484ea42474742e1ce8c9203c7f3562a47fc909.tar.gz monzero-gui-0c484ea42474742e1ce8c9203c7f3562a47fc909.tar.xz monzero-gui-0c484ea42474742e1ce8c9203c7f3562a47fc909.zip | |
Merge pull request #226
abd5c68 Windows: don't allow non-ascii characters in path (Jaquee)
1a610db add isWindows property (Jaquee)
Diffstat (limited to 'main.cpp')
| -rw-r--r-- | main.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -118,12 +118,14 @@ int main(int argc, char *argv[]) // to save the wallet file (.keys, .bin), they have to be user-accessible for // backups - I reckon we save that in My Documents\Monero Accounts\ on // Windows, ~/Monero Accounts/ on nix / osx - + bool isWindows = false; #ifdef Q_OS_WIN + isWindows = true; QStringList moneroAccountsRootDir = QStandardPaths::standardLocations(QStandardPaths::DocumentsLocation); #elif defined(Q_OS_UNIX) QStringList moneroAccountsRootDir = QStandardPaths::standardLocations(QStandardPaths::HomeLocation); #endif + engine.rootContext()->setContextProperty("isWindows", isWindows); if (!moneroAccountsRootDir.empty()) { QString moneroAccountsDir = moneroAccountsRootDir.at(0) + "/Monero/wallets"; |
