QTfrontend/ui/page/pagenet.cpp
changeset 8636 fa8cd97a0a09
parent 7794 ab7b94c03bc9
child 9080 9b42757d7e71
--- a/QTfrontend/ui/page/pagenet.cpp	Mon Mar 04 10:08:38 2013 +0100
+++ b/QTfrontend/ui/page/pagenet.cpp	Mon Mar 04 10:30:56 2013 +0100
@@ -72,7 +72,12 @@
 
     BtnNetSvrStart = formattedButton(QPushButton::tr("Start server"));
     BtnNetSvrStart->setMinimumWidth(180);
-    BtnNetSvrStart->setVisible(haveServer);
+    QString serverPath = bindir->absolutePath() + "/hedgewars-server";
+#ifdef Q_WS_WIN
+    serverPath += + ".exe";
+#endif
+    QFile server(serverPath);
+    BtnNetSvrStart->setVisible(server.exists());
 
     footerLayout->addStretch();
     footerLayout->addWidget(BtnNetSvrStart);