diff options
Diffstat (limited to 'src/gui/application/main.cpp')
-rw-r--r-- | src/gui/application/main.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gui/application/main.cpp b/src/gui/application/main.cpp index 51230e8..8d771d2 100644 --- a/src/gui/application/main.cpp +++ b/src/gui/application/main.cpp @@ -350,20 +350,20 @@ void testInstalledVersion() TQString versionLocation = locate("appdata", "version.txt"); TQString installedVersion; - if (versionLocation) { + if (!versionLocation.isNull()) { TQFile versionFile(versionLocation); if (versionFile.open(IO_ReadOnly)) { TQTextStream text(&versionFile); TQString s = text.readLine().stripWhiteSpace(); versionFile.close(); - if (s) { + if (!s.isNull()) { if (s == VERSION) return; installedVersion = s; } } } - if (installedVersion) { + if (!installedVersion.isNull()) { KMessageBox::detailedError (0, @@ -724,7 +724,7 @@ int main(int argc, char *argv[]) TQLabel *image = new TQLabel(hb); image->tqsetAlignment(TQt::AlignTop); TQString iconFile = locate("appdata", "pixmaps/misc/welcome-icon.png"); - if (iconFile) { + if (!iconFile.isNull()) { image->setPixmap(TQPixmap(iconFile)); } TQLabel *label = new TQLabel(hb); |