GUI: Show instructions instead of error when viewer application is not configured.

This commit is contained in:
Kimmo Varis 2009-07-03 17:46:39 +03:00
parent f1847e736d
commit 3b1c9098b8
6 changed files with 14 additions and 9 deletions

View File

@ -414,7 +414,8 @@ Stop the checking before exiting.</source>
</message>
<message>
<location filename="resultstree.cpp" line="426"/>
<source>You can open this error by specifying applications in program&apos;s settings.</source>
<source>Configure the text file viewer program in Cppcheck preferences/Applications.</source>
<oldsource>You can open this error by specifying applications in program&apos;s settings.</oldsource>
<translation type="unfinished"></translation>
</message>
<message>

View File

@ -451,8 +451,9 @@ Stop the checking before exiting.</translation>
</message>
<message>
<location filename="resultstree.cpp" line="426"/>
<source>You can open this error by specifying applications in program&apos;s settings.</source>
<translation>You can open this error by specifying applications in program&apos;s settings.</translation>
<source>Configure the text file viewer program in Cppcheck preferences/Applications.</source>
<oldsource>You can open this error by specifying applications in program&apos;s settings.</oldsource>
<translation type="unfinished">You can open this error by specifying applications in program&apos;s settings.</translation>
</message>
<message>
<location filename="resultstree.cpp" line="471"/>

View File

@ -451,8 +451,9 @@ Lopeta tarkistus ennen ohjelman sammuttamista.</translation>
</message>
<message>
<location filename="resultstree.cpp" line="426"/>
<source>You can open this error by specifying applications in program&apos;s settings.</source>
<translation>Voit asetuksista määritellä muita ohjelmia joilla avata tämän virheen sisältävän tiedoston.</translation>
<source>Configure the text file viewer program in Cppcheck preferences/Applications.</source>
<oldsource>You can open this error by specifying applications in program&apos;s settings.</oldsource>
<translation type="unfinished">Voit asetuksista määritellä muita ohjelmia joilla avata tämän virheen sisältävän tiedoston.</translation>
</message>
<message>
<location filename="resultstree.cpp" line="471"/>

View File

@ -416,7 +416,8 @@ Stop the checking before exiting.</source>
</message>
<message>
<location filename="resultstree.cpp" line="426"/>
<source>You can open this error by specifying applications in program&apos;s settings.</source>
<source>Configure the text file viewer program in Cppcheck preferences/Applications.</source>
<oldsource>You can open this error by specifying applications in program&apos;s settings.</oldsource>
<translation type="unfinished"></translation>
</message>
<message>

View File

@ -416,7 +416,8 @@ Stop the checking before exiting.</source>
</message>
<message>
<location filename="resultstree.cpp" line="426"/>
<source>You can open this error by specifying applications in program&apos;s settings.</source>
<source>Configure the text file viewer program in Cppcheck preferences/Applications.</source>
<oldsource>You can open this error by specifying applications in program&apos;s settings.</oldsource>
<translation type="unfinished"></translation>
</message>
<message>

View File

@ -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();