1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-04 01:48:54 +00:00
freebsd-ports/games/qgo/files/patch-src__mainwindow_settings.cpp
Martin Wilke 10e77521ed - Update to version 2.s764
PR:		179220
Submitted by:	Ports Fury
2013-06-09 16:56:01 +00:00

18 lines
724 B
C++

--- src/mainwindow_settings.cpp.orig
+++ src/mainwindow_settings.cpp
@@ -269,7 +269,13 @@
QVariant var;
ui.comboBox_language->setCurrentIndex (settings.value("LANGUAGE").toInt());
- ui.LineEdit_computer->setText(settings.value("COMPUTER_PATH").toString());
+ QString computer_path = settings.value("COMPUTER_PATH").toString();
+ qDebug() << "COMPUTER_PATH" << computer_path;
+ if (computer_path == "") {
+ computer_path = "%%LOCALBASE%%/bin/gnugo";
+ settings.setValue("COMPUTER_PATH", computer_path);
+ }
+ ui.LineEdit_computer->setText(computer_path);
if(settings.value("COMPUTER_PLAYS_WHITE").toBool())
ui.computerPlaysWhite->setChecked(TRUE);
else