From 3b1c9098b819173a2a332a4a96d4840115a2ec00 Mon Sep 17 00:00:00 2001 From: Kimmo Varis Date: Fri, 3 Jul 2009 17:46:39 +0300 Subject: [PATCH] GUI: Show instructions instead of error when viewer application is not configured. --- gui/cppcheck_de.ts | 3 ++- gui/cppcheck_en.ts | 5 +++-- gui/cppcheck_fi.ts | 5 +++-- gui/cppcheck_ru.ts | 3 ++- gui/cppcheck_se.ts | 3 ++- gui/resultstree.cpp | 4 ++-- 6 files changed, 14 insertions(+), 9 deletions(-) diff --git a/gui/cppcheck_de.ts b/gui/cppcheck_de.ts index d519fcde9..683491e2e 100644 --- a/gui/cppcheck_de.ts +++ b/gui/cppcheck_de.ts @@ -414,7 +414,8 @@ Stop the checking before exiting. - You can open this error by specifying applications in program's settings. + Configure the text file viewer program in Cppcheck preferences/Applications. + You can open this error by specifying applications in program's settings. diff --git a/gui/cppcheck_en.ts b/gui/cppcheck_en.ts index a975b1deb..71843de9b 100644 --- a/gui/cppcheck_en.ts +++ b/gui/cppcheck_en.ts @@ -451,8 +451,9 @@ Stop the checking before exiting. - You can open this error by specifying applications in program's settings. - You can open this error by specifying applications in program's settings. + Configure the text file viewer program in Cppcheck preferences/Applications. + You can open this error by specifying applications in program's settings. + You can open this error by specifying applications in program's settings. diff --git a/gui/cppcheck_fi.ts b/gui/cppcheck_fi.ts index a6d0beeb2..1f327b6f1 100644 --- a/gui/cppcheck_fi.ts +++ b/gui/cppcheck_fi.ts @@ -451,8 +451,9 @@ Lopeta tarkistus ennen ohjelman sammuttamista. - You can open this error by specifying applications in program's settings. - Voit asetuksista määritellä muita ohjelmia joilla avata tämän virheen sisältävän tiedoston. + Configure the text file viewer program in Cppcheck preferences/Applications. + You can open this error by specifying applications in program's settings. + Voit asetuksista määritellä muita ohjelmia joilla avata tämän virheen sisältävän tiedoston. diff --git a/gui/cppcheck_ru.ts b/gui/cppcheck_ru.ts index 005359610..58d74a3c7 100644 --- a/gui/cppcheck_ru.ts +++ b/gui/cppcheck_ru.ts @@ -416,7 +416,8 @@ Stop the checking before exiting. - You can open this error by specifying applications in program's settings. + Configure the text file viewer program in Cppcheck preferences/Applications. + You can open this error by specifying applications in program's settings. diff --git a/gui/cppcheck_se.ts b/gui/cppcheck_se.ts index 005359610..58d74a3c7 100644 --- a/gui/cppcheck_se.ts +++ b/gui/cppcheck_se.ts @@ -416,7 +416,8 @@ Stop the checking before exiting. - You can open this error by specifying applications in program's settings. + Configure the text file viewer program in Cppcheck preferences/Applications. + You can open this error by specifying applications in program's settings. diff --git a/gui/resultstree.cpp b/gui/resultstree.cpp index 6dc40b4dd..bcd050906 100644 --- a/gui/resultstree.cpp +++ b/gui/resultstree.cpp @@ -421,9 +421,9 @@ void ResultsTree::StartApplication(QStandardItem *target, int application) //If there are now application's specified, tell the user about it if (mApplications->GetApplicationCount() == 0) { - QMessageBox msg(QMessageBox::Warning, + QMessageBox msg(QMessageBox::Information, tr("Cppcheck"), - tr("You can open this error by specifying applications in program's settings."), + tr("Configure the text file viewer program in Cppcheck preferences/Applications."), QMessageBox::Ok, this); msg.exec();