# HG changeset patch # User sheepluva # Date 1319748742 -7200 # Node ID 999215ca87d7f4fa1e5837e84663ee06352c5088 # Parent ef53ba8417916b6e5522e8628b6f159e0ac93b99 actually the those if(...); weren't supposed to be if statements in the first place, since the result is always true at that point of code anyway. diff -r ef53ba841791 -r 999215ca87d7 QTfrontend/ui/page/pageoptions.cpp --- a/QTfrontend/ui/page/pageoptions.cpp Thu Oct 27 21:33:18 2011 +0400 +++ b/QTfrontend/ui/page/pageoptions.cpp Thu Oct 27 22:52:22 2011 +0200 @@ -448,7 +448,7 @@ void PageOptions::setQuality(int value) { - Q_UNUSED(value); + Q_UNUSED(value); int index = this->CBStereoMode->currentIndex(); if (index == 0) @@ -457,7 +457,7 @@ void PageOptions::setFullscreen(int state) { - Q_UNUSED(state); + Q_UNUSED(state); int index = this->CBStereoMode->currentIndex(); if (index != 7 && index != 8 && index != 9) @@ -466,7 +466,7 @@ void PageOptions::setResolution(int state) { - Q_UNUSED(state); + Q_UNUSED(state); int index = this->CBStereoMode->currentIndex(); if (index != 7 && index != 8 && index != 9) diff -r ef53ba841791 -r 999215ca87d7 QTfrontend/ui/widget/SmartLineEdit.cpp --- a/QTfrontend/ui/widget/SmartLineEdit.cpp Thu Oct 27 21:33:18 2011 +0400 +++ b/QTfrontend/ui/widget/SmartLineEdit.cpp Thu Oct 27 22:52:22 2011 +0200 @@ -199,8 +199,8 @@ match = cmd; // move match to end so next time new matches will be preferred - if (m_cmds->removeAll(cmd) > 0) - m_cmds->append(cmd); + m_cmds->removeAll(cmd); + m_cmds->append(cmd); break; } @@ -218,8 +218,8 @@ isNick = true; // move match to end so next time new matches will be prefered - if (m_nicks->removeAll(nick) > 0) - m_nicks->append(nick); + m_nicks->removeAll(nick); + m_nicks->append(nick); break; } diff -r ef53ba841791 -r 999215ca87d7 QTfrontend/ui/widget/chatwidget.cpp --- a/QTfrontend/ui/widget/chatwidget.cpp Thu Oct 27 21:33:18 2011 +0400 +++ b/QTfrontend/ui/widget/chatwidget.cpp Thu Oct 27 22:52:22 2011 +0200 @@ -841,7 +841,7 @@ setStyleSheet(style); chatText->document()->setDefaultStyleSheet(*s_styleSheet); displayNotice(tr("Stylesheet imported from %1").arg(path)); - displayNotice(tr("Enter %1 if you want to use the current styleSheet in future, enter %2 to reset!").arg("/saveStyleSheet").arg("/discaredStyleSheet")); + displayNotice(tr("Enter %1 if you want to use the current styleSheet in future, enter %2 to reset!").arg("/saveStyleSheet").arg("/discardStyleSheet")); if (file.isOpen()) file.close();