equal
deleted
inserted
replaced
70 { |
70 { |
71 QHBoxLayout * footerLayout = new QHBoxLayout(); |
71 QHBoxLayout * footerLayout = new QHBoxLayout(); |
72 |
72 |
73 BtnNetSvrStart = formattedButton(QPushButton::tr("Start server")); |
73 BtnNetSvrStart = formattedButton(QPushButton::tr("Start server")); |
74 BtnNetSvrStart->setMinimumWidth(180); |
74 BtnNetSvrStart->setMinimumWidth(180); |
75 BtnNetSvrStart->setVisible(haveServer); |
75 QString serverPath = bindir->absolutePath() + "/hedgewars-server"; |
|
76 #ifdef Q_WS_WIN |
|
77 serverPath += + ".exe"; |
|
78 #endif |
|
79 QFile server(serverPath); |
|
80 BtnNetSvrStart->setVisible(server.exists()); |
76 |
81 |
77 footerLayout->addStretch(); |
82 footerLayout->addStretch(); |
78 footerLayout->addWidget(BtnNetSvrStart); |
83 footerLayout->addWidget(BtnNetSvrStart); |
79 |
84 |
80 return footerLayout; |
85 return footerLayout; |