disable file association on mac for now
authorkoda
Mon, 01 Nov 2010 23:30:33 +0100
changeset 4090 4b165832d232
parent 4089 b0535bf61638
child 4091 f89b8d0afbe1
disable file association on mac for now
QTfrontend/hwform.cpp
QTfrontend/pages.cpp
--- a/QTfrontend/hwform.cpp	Mon Nov 01 18:20:50 2010 -0400
+++ b/QTfrontend/hwform.cpp	Mon Nov 01 23:30:33 2010 +0100
@@ -1131,6 +1131,9 @@
     registry_hkcr.setValue("Hedgewars.Save/DefaultIcon/Default", "\"" + bindir->absolutePath().replace("/", "\\") + "\\hwsfile.ico\",0");
     registry_hkcr.setValue("Hedgewars.Demo/Shell/Open/Command/Default", "\"" + bindir->absolutePath().replace("/", "\\") + "\\hwengine.exe\" \"" + datadir->absolutePath().replace("/", "\\") + "\" \"%1\"");
     registry_hkcr.setValue("Hedgewars.Save/Shell/Open/Command/Default", "\"" + bindir->absolutePath().replace("/", "\\") + "\\hwengine.exe\" \"" + datadir->absolutePath().replace("/", "\\") + "\" \"%1\"");
+#elif defined __APPLE__
+    success = false;
+    // TODO; also reenable button in pages.cpp
 #else
     if (success) success = checkForDir(QDir::home().absolutePath() + "/.local");
     if (success) success = checkForDir(QDir::home().absolutePath() + "/.local/share");
--- a/QTfrontend/pages.cpp	Mon Nov 01 18:20:50 2010 -0400
+++ b/QTfrontend/pages.cpp	Mon Nov 01 23:30:33 2010 +0100
@@ -611,11 +611,12 @@
             CBAutoUpdate->setText(QCheckBox::tr("Check for updates at startup"));
             MiscLayout->addWidget(CBAutoUpdate, 4, 0, 1, 2);
 #endif
+#ifndef __APPLE__
             BtnAssociateFiles = new QPushButton(groupMisc);
             BtnAssociateFiles->setText(QPushButton::tr("Associate file extensions"));
             BtnAssociateFiles->setEnabled(!custom_data && !custom_config);
             MiscLayout->addWidget(BtnAssociateFiles, 4, 0, 1, 2);
-
+#endif
             gbTBLayout->addWidget(groupMisc, 2, 0);
         }