Commit 8b4004af authored by Jan Möbius's avatar Jan Möbius
Browse files

Another bugfix for options widget

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@2939 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 2e2e5a23
...@@ -351,14 +351,12 @@ void OptionsWidget::compareVersions() { ...@@ -351,14 +351,12 @@ void OptionsWidget::compareVersions() {
QString updatedComponents = "Updates found for "; QString updatedComponents = "Updates found for ";
QString systemString = ""; QString systemString = "";
if ( true || OpenFlipper::Options::isWindows() ) { if ( OpenFlipper::Options::isWindows() ) {
systemString = "VersionWindows"; systemString = "VersionWindows";
} else if (OpenFlipper::Options::isLinux()) { } else if (OpenFlipper::Options::isLinux()) {
systemString = "VersionLinux"; systemString = "VersionLinux";
return;
} else { } else {
std::cerr << "Unsupported platform for update" << std::endl; std::cerr << "Unsupported platform for update" << std::endl;
return; return;
...@@ -375,7 +373,9 @@ void OptionsWidget::compareVersions() { ...@@ -375,7 +373,9 @@ void OptionsWidget::compareVersions() {
newerVersionsAvailable = true; newerVersionsAvailable = true;
updatedComponents += "Core " + OpenFlipper::Options::coreVersion() + " -> " + coreVersion ; updatedComponents += "Core " + OpenFlipper::Options::coreVersion() + " -> " + coreVersion ;
} } /*else {
std::cerr << "No update for core " << OpenFlipper::Options::coreVersion().toStdString() << coreVersion.toStdString() << std::endl;
}*/
} }
for ( uint i = 0 ; i < plugins_.size(); ++i ) { for ( uint i = 0 ; i < plugins_.size(); ++i ) {
...@@ -393,18 +393,18 @@ void OptionsWidget::compareVersions() { ...@@ -393,18 +393,18 @@ void OptionsWidget::compareVersions() {
updatedComponents += plugins_[i].name + " " + plugins_[i].version + " -> " + latestVersion; updatedComponents += plugins_[i].name + " " + plugins_[i].version + " -> " + latestVersion;
} }
} }/*
// else { else {
//
// std::cerr << "No Version information on server for " << plugins_[i].name.toStdString() std::cerr << "No Version information on server for " << plugins_[i].name.toStdString()
// << ". Local Version is "; << ". Local Version is ";
// if ( plugins_[i].version == "-1" ) if ( plugins_[i].version == "-1" )
// std::cerr << "UNKNOWN (no info provided by plugin" << std::endl; std::cerr << "UNKNOWN (no info provided by plugin" << std::endl;
// else else
// std::cerr << plugins_[i].version.toStdString() << std::endl; std::cerr << plugins_[i].version.toStdString() << std::endl;
// } }*/
} }
......
Supports Markdown
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