aboutsummaryrefslogtreecommitdiff
path: root/src/qt/utils.cpp
diff options
context:
space:
mode:
authorselsta <selsta@sent.at>2019-09-06 00:22:39 +0200
committerselsta <selsta@sent.at>2019-09-06 00:22:39 +0200
commit738e802f3c9684252069b3ae16e686ab0ba14973 (patch)
tree1a42dd9fa2880784cd16adbadc93e13c95bd388e /src/qt/utils.cpp
parenta267712d100a9c514dd7de451356fe115b2090a9 (diff)
downloadmonzero-gui-738e802f3c9684252069b3ae16e686ab0ba14973.tar.gz
monzero-gui-738e802f3c9684252069b3ae16e686ab0ba14973.tar.xz
monzero-gui-738e802f3c9684252069b3ae16e686ab0ba14973.zip
macOS/Windows: fix compiler warning
Diffstat (limited to 'src/qt/utils.cpp')
-rw-r--r--src/qt/utils.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qt/utils.cpp b/src/qt/utils.cpp
index 35b5a835..bcf69917 100644
--- a/src/qt/utils.cpp
+++ b/src/qt/utils.cpp
@@ -67,6 +67,7 @@ QString getAccountName(){
return accountName;
}
+#ifdef Q_OS_LINUX
QString xdgMime(QApplication &app){
return QString(
"[Desktop Entry]\n"
@@ -88,7 +89,6 @@ QString xdgMime(QApplication &app){
}
void registerXdgMime(QApplication &app){
-#ifdef Q_OS_LINUX
// Register desktop entry
// - MacOS handled via Info.plist
// - Windows handled in the installer by rbrunner7
@@ -111,8 +111,8 @@ void registerXdgMime(QApplication &app){
#endif
fileWrite(filePath, mime);
-#endif
}
+#endif
QString randomUserAgent(){
QStringList urand;