mirror of
https://github.com/epasveer/seer.git
synced 2026-08-31 01:20:45 +08:00
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:
@@ -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") {
|
||||
|
||||
Reference in New Issue
Block a user