Handle a generic "*stopped" message better.

dprintf will result in a very plain "*stopped" message if the
dprintf is told to call a function that may throw an exception, thus
calling std::terminate.
This commit is contained in:
Ernie Pasveer
2022-02-20 17:51:06 -06:00
parent 8fd9c78ed7
commit 2845d3b887
6 changed files with 21 additions and 6 deletions
+7 -1
View File
@@ -92,7 +92,13 @@ void SeerSourceBrowserWidget::handleText (const QString& text) {
*/
// Look at the filename suffix.
if (fileInfo.suffix() == "cpp" || fileInfo.suffix() == "c" || fileInfo.suffix() == "f" || fileInfo.suffix() == "f90") {
if (fileInfo.suffix() == "cpp" || fileInfo.suffix() == "c") { // C/C++
_sourceFilesItems->addChild(item);
}else if (fileInfo.suffix() == "f" || fileInfo.suffix() == "f90" || fileInfo.suffix() == "F90") { // Fortran
_sourceFilesItems->addChild(item);
}else if (fileInfo.suffix() == "rs") { // Rust
_sourceFilesItems->addChild(item);
}else if (fileInfo.suffix() == "hpp" || fileInfo.suffix() == "h") {