Commit c031c6d9 authored by Jan Möbius's avatar Jan Möbius

OptionsWidget Versions. Mark Versions which are newer on local system than on server blue.

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@3532 383ad7c9-94d9-4d36-a494-682f7c89f535
parent f0c3c2d5
......@@ -236,6 +236,8 @@ void OptionsWidget::updateVersionsTable() {
// Newer Version available
if ( isNewer(OpenFlipper::Options::coreVersion(),coreVersion) )
currentBrush.setColor(Qt::red);
else if ( isNewer(coreVersion , OpenFlipper::Options::coreVersion()) )
currentBrush.setColor(Qt::blue);
else
currentBrush.setColor(Qt::green);
......@@ -269,9 +271,11 @@ void OptionsWidget::updateVersionsTable() {
// Newer Version available
if ( isNewer(plugins_[i].version,latestVersion) )
currentBrush.setColor(Qt::red);
currentBrush.setColor(Qt::red);
else if ( isNewer(latestVersion,plugins_[i].version) )
currentBrush.setColor(Qt::blue);
else
currentBrush.setColor(Qt::green);
currentBrush.setColor(Qt::green);
newItem = new QTableWidgetItem( latestVersion );
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment