diff options
| author | Martin Wilke <miwi@FreeBSD.org> | 2013-06-09 16:56:01 +0000 | 
|---|---|---|
| committer | Martin Wilke <miwi@FreeBSD.org> | 2013-06-09 16:56:01 +0000 | 
| commit | 10e77521ede3029b89e41d2c55f18799a9f1c744 (patch) | |
| tree | 5d46596c66504e330c7d83892224abed7069682e /games/qgo/files/patch-src__mainwindow_settings.cpp | |
| parent | - Fix build with clang (diff) | |
- Update to version 2.s764
PR:		179220
Submitted by:	Ports Fury
Diffstat (limited to 'games/qgo/files/patch-src__mainwindow_settings.cpp')
| -rw-r--r-- | games/qgo/files/patch-src__mainwindow_settings.cpp | 17 | 
1 files changed, 17 insertions, 0 deletions
| diff --git a/games/qgo/files/patch-src__mainwindow_settings.cpp b/games/qgo/files/patch-src__mainwindow_settings.cpp new file mode 100644 index 000000000000..4d955d784579 --- /dev/null +++ b/games/qgo/files/patch-src__mainwindow_settings.cpp @@ -0,0 +1,17 @@ +--- 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 | 
