diff --git a/gui/cppcheck_de.ts b/gui/cppcheck_de.ts index df400c19b..fea41f30d 100644 --- a/gui/cppcheck_de.ts +++ b/gui/cppcheck_de.ts @@ -130,8 +130,8 @@ kate -l(line) (file) - - + + Cppcheck @@ -361,35 +361,28 @@ kate -l(line) (file) - - Cannot exit while checking. - -Stop the checking before exiting. - - - - + License - + Authors - + XML files (*.xml);;Text files (*.txt);;CSV files (*.csv) - + Save the report file - + XML files (*.xml) @@ -399,22 +392,29 @@ Stop the checking before exiting. - + + Checking is running. + +Do you want to stop the checking and exit Cppcheck?. + + + + Text files (*.txt) - + CSV files (*.csv) - + Cppcheck - %1 - + Failed to change the language: %1 @@ -426,18 +426,18 @@ Stop the checking before exiting. - - + + Project files (*.cppcheck);;All files(*.*) - + Select Project File - + Select Project Filename @@ -637,36 +637,36 @@ Please select the directory where file is located. ResultsView + - Cppcheck - + No errors found. - + Errors were found, but they are configured to be hidden. To toggle what kind of errors are shown, open view menu. - - + + Failed to read the report. - + No errors found, nothing to save. - - + + Failed to save the report. diff --git a/gui/cppcheck_en.ts b/gui/cppcheck_en.ts index cf01bd70f..1aa29f33f 100644 --- a/gui/cppcheck_en.ts +++ b/gui/cppcheck_en.ts @@ -143,8 +143,8 @@ kate -l(line) (file) - - + + Cppcheck Cppcheck @@ -374,37 +374,28 @@ kate -l(line) (file) No suitable files found to check! - - Cannot exit while checking. - -Stop the checking before exiting. - Cannot exit while checking. - -Stop the checking before exiting. - - - + License License - + Authors Authors - + XML files (*.xml);;Text files (*.txt);;CSV files (*.csv) XML files (*.xml);;Text files (*.txt);;CSV files (*.csv) - + Save the report file Save the report file - + XML files (*.xml) XML files (*.xml) @@ -414,22 +405,29 @@ Stop the checking before exiting. - + + Checking is running. + +Do you want to stop the checking and exit Cppcheck?. + + + + Text files (*.txt) Text files (*.txt) - + CSV files (*.csv) - + Cppcheck - %1 Cppcheck - %1 - + Failed to change the language: %1 @@ -443,18 +441,18 @@ Stop the checking before exiting. %1 - - + + Project files (*.cppcheck);;All files(*.*) - + Select Project File - + Select Project Filename @@ -656,37 +654,37 @@ Please select the directory where file is located. ResultsView + - Cppcheck Cppcheck - + No errors found. No errors found. - + Errors were found, but they are configured to be hidden. To toggle what kind of errors are shown, open view menu. Errors were found, but they are configured to be hidden. To toggle what kind of errors are shown, open view menu. - - + + Failed to read the report. - + No errors found, nothing to save. No errors found, nothing to save. - - + + Failed to save the report. Failed to save the report. diff --git a/gui/cppcheck_fi.ts b/gui/cppcheck_fi.ts index a5c6f69c9..b71567a3d 100644 --- a/gui/cppcheck_fi.ts +++ b/gui/cppcheck_fi.ts @@ -145,8 +145,8 @@ kate -l(line) (file) - - + + Cppcheck Cppcheck @@ -376,37 +376,28 @@ kate -l(line) (file) Tarkistettavaksi sopivia tiedostoja ei löytynyt! - - Cannot exit while checking. - -Stop the checking before exiting. - Ohjelmaa ei voi sammuttaa tarkistuksen ollessa käynnissä. - -Lopeta tarkistus ennen ohjelman sammuttamista. - - - + License Lisenssi - + Authors Tekijät - + XML files (*.xml);;Text files (*.txt);;CSV files (*.csv) XML-tiedostot (*.xml);;Tekstitiedostot (*.txt);;CSV-tiedostot (*.csv) - + Save the report file Tallenna raportti - + XML files (*.xml) XML-tiedostot (*xml) @@ -416,22 +407,29 @@ Lopeta tarkistus ennen ohjelman sammuttamista. - + + Checking is running. + +Do you want to stop the checking and exit Cppcheck?. + + + + Text files (*.txt) Tekstitiedostot (*.txt) - + CSV files (*.csv) - + Cppcheck - %1 Cppcheck - %1 - + Failed to change the language: %1 @@ -447,18 +445,18 @@ Lopeta tarkistus ennen ohjelman sammuttamista. - - + + Project files (*.cppcheck);;All files(*.*) - + Select Project File - + Select Project Filename @@ -660,37 +658,37 @@ Please select the directory where file is located. ResultsView + - Cppcheck Cppcheck - + No errors found. Virheitä ei löytynyt. - + Errors were found, but they are configured to be hidden. To toggle what kind of errors are shown, open view menu. Virheitä löytyi, mutta asetuksissa kyseiset virheet on määritelty piilotettavaksi. Määrittääksesi minkä tyyppisiä virheitä näytetään, avaa näkymä valikko. - - + + Failed to read the report. - + No errors found, nothing to save. Virheitä ei löytynyt, ei mitään tallennettavaa. - - + + Failed to save the report. Raportin tallentaminen epäonnistui. diff --git a/gui/cppcheck_nl.ts b/gui/cppcheck_nl.ts index 9b2c1bee8..552e12cf6 100644 --- a/gui/cppcheck_nl.ts +++ b/gui/cppcheck_nl.ts @@ -143,8 +143,8 @@ kate -l(line) (file) - - + + Cppcheck Cppcheck @@ -374,37 +374,28 @@ kate -l(line) (file) Geen geschikte bestanden gevonden om te controleren! - - Cannot exit while checking. - -Stop the checking before exiting. - Kan niet termineren terwijl een controle bezig is. - -Stop de controle alvorens te sluiten. - - - + License Licentie - + Authors Auteurs - + XML files (*.xml);;Text files (*.txt);;CSV files (*.csv) XML bestanden (*.xml);;Tekst bestanden (*.txt);;CSV bestanden (*.csv) - + Save the report file Rapport opslaan - + XML files (*.xml) XML bestanden (*.xml) @@ -414,22 +405,29 @@ Stop de controle alvorens te sluiten. - + + Checking is running. + +Do you want to stop the checking and exit Cppcheck?. + + + + Text files (*.txt) Tekst bestanden (*.txt) - + CSV files (*.csv) - + Cppcheck - %1 Cppcheck - %1 - + Failed to change the language: %1 @@ -443,18 +441,18 @@ Stop de controle alvorens te sluiten. %1 - - + + Project files (*.cppcheck);;All files(*.*) - + Select Project File - + Select Project Filename @@ -656,37 +654,37 @@ Please select the directory where file is located. ResultsView + - Cppcheck Cppcheck - + No errors found. Geen fouten gevonden. - + Errors were found, but they are configured to be hidden. To toggle what kind of errors are shown, open view menu. Fouten werden gevonden, maar volgens de configuratie zijn deze verborgen. Gebruik het uitzicht menu om te selecteren welke fouten getoond worden. - - + + Failed to read the report. - + No errors found, nothing to save. Geen fouten gevonden; geen data om op te slaan. - - + + Failed to save the report. Kon het rapport niet opslaan. diff --git a/gui/cppcheck_pl.ts b/gui/cppcheck_pl.ts index 4db1ed994..9921d0b39 100644 --- a/gui/cppcheck_pl.ts +++ b/gui/cppcheck_pl.ts @@ -130,8 +130,8 @@ kate -l(line) (file) - - + + Cppcheck @@ -366,60 +366,60 @@ kate -l(line) (file) - - Cannot exit while checking. - -Stop the checking before exiting. - - - - + License - + Authors - + XML files (*.xml);;Text files (*.txt);;CSV files (*.csv) - + Save the report file - + Select Project Filename - + XML files (*.xml) - + + Checking is running. + +Do you want to stop the checking and exit Cppcheck?. + + + + Text files (*.txt) - + CSV files (*.csv) - + Cppcheck - %1 - + Failed to change the language: %1 @@ -428,13 +428,13 @@ Stop the checking before exiting. - - + + Project files (*.cppcheck);;All files(*.*) - + Select Project File @@ -631,36 +631,36 @@ Please select the directory where file is located. ResultsView + - Cppcheck - + No errors found. - + Errors were found, but they are configured to be hidden. To toggle what kind of errors are shown, open view menu. - - + + Failed to read the report. - + No errors found, nothing to save. - - + + Failed to save the report. diff --git a/gui/cppcheck_ru.ts b/gui/cppcheck_ru.ts index 415cd4044..833ba47e8 100644 --- a/gui/cppcheck_ru.ts +++ b/gui/cppcheck_ru.ts @@ -133,8 +133,8 @@ kate -l(line) (file) - - + + Cppcheck Cppcheck @@ -364,35 +364,28 @@ kate -l(line) (file) - - Cannot exit while checking. - -Stop the checking before exiting. - - - - + License Лицензия - + Authors Авторы - + XML files (*.xml);;Text files (*.txt);;CSV files (*.csv) - + Save the report file - + XML files (*.xml) @@ -402,22 +395,29 @@ Stop the checking before exiting. - + + Checking is running. + +Do you want to stop the checking and exit Cppcheck?. + + + + Text files (*.txt) Текстовые файлы (*.txt) - + CSV files (*.csv) - + Cppcheck - %1 Cppcheck - %1 - + Failed to change the language: %1 @@ -433,18 +433,18 @@ Stop the checking before exiting. - - + + Project files (*.cppcheck);;All files(*.*) - + Select Project File - + Select Project Filename @@ -644,36 +644,36 @@ Please select the directory where file is located. ResultsView + - Cppcheck Cppcheck - + No errors found. Ошибок не найдено. - + Errors were found, but they are configured to be hidden. To toggle what kind of errors are shown, open view menu. - - + + Failed to read the report. - + No errors found, nothing to save. - - + + Failed to save the report. diff --git a/gui/cppcheck_se.ts b/gui/cppcheck_se.ts index 523e07c96..5f5ce21cd 100644 --- a/gui/cppcheck_se.ts +++ b/gui/cppcheck_se.ts @@ -143,8 +143,8 @@ kate -l(line) (file) - - + + Cppcheck Cppcheck @@ -375,35 +375,28 @@ kate -l(line) (file) Inga lämpliga filer hittades! - - Cannot exit while checking. - -Stop the checking before exiting. - Kan ej avsluta medans check pågår. - - - + License Licens - + Authors Utvecklare - + XML files (*.xml);;Text files (*.txt);;CSV files (*.csv) XML filer (*.xml);;Text filer (*.txt);;CSV filer (*.csv) - + Save the report file Spara rapport - + XML files (*.xml) XML filer (*.xml) @@ -413,22 +406,29 @@ Stop the checking before exiting. - + + Checking is running. + +Do you want to stop the checking and exit Cppcheck?. + + + + Text files (*.txt) Text filer (*.txt) - + CSV files (*.csv) CSV filer (*.csv) - + Cppcheck - %1 Cppcheck - %1 - + Failed to change the language: %1 @@ -444,18 +444,18 @@ Stop the checking before exiting. - - + + Project files (*.cppcheck);;All files(*.*) - + Select Project File - + Select Project Filename @@ -657,37 +657,37 @@ Please select the directory where file is located. ResultsView + - Cppcheck Cppcheck - + No errors found. Inga fel hittades. - + Errors were found, but they are configured to be hidden. To toggle what kind of errors are shown, open view menu. Fel hittades, men de visas ej. För att ställa in vilka fel som skall visas använd visa menyn. - - + + Failed to read the report. - + No errors found, nothing to save. Inga fel hittades, ingenting att spara. - - + + Failed to save the report. Misslyckades med att spara rapporten. diff --git a/gui/mainwindow.cpp b/gui/mainwindow.cpp index e4e15e1ef..159327950 100644 --- a/gui/mainwindow.cpp +++ b/gui/mainwindow.cpp @@ -500,17 +500,27 @@ void MainWindow::closeEvent(QCloseEvent *event) } else { - QString text(tr("Cannot exit while checking.\n\n" \ - "Stop the checking before exiting.")); + QString text(tr("Checking is running.\n\n" \ + "Do you want to stop the checking and exit Cppcheck?.")); QMessageBox msg(QMessageBox::Warning, tr("Cppcheck"), text, - QMessageBox::Ok, + QMessageBox::Yes | QMessageBox::No, this); - msg.exec(); - event->ignore(); + msg.setDefaultButton(QMessageBox::No); + int rv = msg.exec(); + if (rv == QMessageBox::Yes) + { + // This isn't really very clean way to close threads but since the app is + // exiting it doesn't matter. + mThread->Stop(); + SaveSettings(); + event->accept(); + } + else + event->ignore(); } }