Qt build fix
The failing Travis build issued about 500 lines of diagnostics when complaining about one line of the source. It compiled ok for me but I use older versions of Qt library and C++ compiler.
This commit is contained in:
+2
-2
@@ -295,8 +295,8 @@ char NetHackQtYnDialog::Exec()
|
|||||||
// present in the QLineEdit widget doesn't affect its isEmpty() test
|
// present in the QLineEdit widget doesn't affect its isEmpty() test
|
||||||
if (le && !le->text().isEmpty()) {
|
if (le && !le->text().isEmpty()) {
|
||||||
QString text(le->text());
|
QString text(le->text());
|
||||||
if (text[0] == "#")
|
if (text.at(0) == QChar('#'))
|
||||||
text = text.mid(1);
|
text = text.mid(1); // rest of string past [0]
|
||||||
::yn_number = text.toLong();
|
::yn_number = text.toLong();
|
||||||
choice = '#';
|
choice = '#';
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user