GUI: Show instructions instead of error when viewer application is not configured.
This commit is contained in:
parent
f1847e736d
commit
3b1c9098b8
|
@ -414,7 +414,8 @@ Stop the checking before exiting.</source>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="resultstree.cpp" line="426"/>
|
<location filename="resultstree.cpp" line="426"/>
|
||||||
<source>You can open this error by specifying applications in program'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's settings.</oldsource>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
|
|
|
@ -451,8 +451,9 @@ Stop the checking before exiting.</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="resultstree.cpp" line="426"/>
|
<location filename="resultstree.cpp" line="426"/>
|
||||||
<source>You can open this error by specifying applications in program's settings.</source>
|
<source>Configure the text file viewer program in Cppcheck preferences/Applications.</source>
|
||||||
<translation>You can open this error by specifying applications in program's settings.</translation>
|
<oldsource>You can open this error by specifying applications in program's settings.</oldsource>
|
||||||
|
<translation type="unfinished">You can open this error by specifying applications in program's settings.</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="resultstree.cpp" line="471"/>
|
<location filename="resultstree.cpp" line="471"/>
|
||||||
|
|
|
@ -451,8 +451,9 @@ Lopeta tarkistus ennen ohjelman sammuttamista.</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="resultstree.cpp" line="426"/>
|
<location filename="resultstree.cpp" line="426"/>
|
||||||
<source>You can open this error by specifying applications in program's settings.</source>
|
<source>Configure the text file viewer program in Cppcheck preferences/Applications.</source>
|
||||||
<translation>Voit asetuksista määritellä muita ohjelmia joilla avata tämän virheen sisältävän tiedoston.</translation>
|
<oldsource>You can open this error by specifying applications in program'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>
|
||||||
<message>
|
<message>
|
||||||
<location filename="resultstree.cpp" line="471"/>
|
<location filename="resultstree.cpp" line="471"/>
|
||||||
|
|
|
@ -416,7 +416,8 @@ Stop the checking before exiting.</source>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="resultstree.cpp" line="426"/>
|
<location filename="resultstree.cpp" line="426"/>
|
||||||
<source>You can open this error by specifying applications in program'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's settings.</oldsource>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
|
|
|
@ -416,7 +416,8 @@ Stop the checking before exiting.</source>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="resultstree.cpp" line="426"/>
|
<location filename="resultstree.cpp" line="426"/>
|
||||||
<source>You can open this error by specifying applications in program'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's settings.</oldsource>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
|
|
|
@ -421,9 +421,9 @@ void ResultsTree::StartApplication(QStandardItem *target, int application)
|
||||||
//If there are now application's specified, tell the user about it
|
//If there are now application's specified, tell the user about it
|
||||||
if (mApplications->GetApplicationCount() == 0)
|
if (mApplications->GetApplicationCount() == 0)
|
||||||
{
|
{
|
||||||
QMessageBox msg(QMessageBox::Warning,
|
QMessageBox msg(QMessageBox::Information,
|
||||||
tr("Cppcheck"),
|
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,
|
QMessageBox::Ok,
|
||||||
this);
|
this);
|
||||||
msg.exec();
|
msg.exec();
|
||||||
|
|
Loading…
Reference in New Issue