Because sometimes I just don't think things through

This commit is contained in:
Bradley Austin Davis 2015-05-12 09:20:02 -07:00
parent c0fc0a226b
commit 14efe912a6

View file

@ -51,16 +51,16 @@ void InfoView::show(const QString& path, bool firstOrChangedOnly) {
}
if (firstOrChangedOnly) {
const QString lastVersion = infoVersion.get();
const QString version = fetchVersion(url);
// If we have version information stored
if (lastVersion != QString::null) {
// Check to see the document version. If it's valid and matches
// the stored version, we're done, so exit
const QString version = fetchVersion(url);
if (version == QString::null || version == lastVersion) {
return;
}
infoVersion.set(version);
}
infoVersion.set(version);
}
auto offscreenUi = DependencyManager::get<OffscreenUi>();
QString infoViewName(NAME + "_" + path);