Skip to content

Commit

Permalink
Some minor cleaning up.
Browse files Browse the repository at this point in the history
  • Loading branch information
agarny committed Oct 22, 2019
1 parent 4de15ba commit f1f1b0c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/plugins/miscellaneous/Core/src/centralwidget.cpp
Expand Up @@ -1029,7 +1029,7 @@ void CentralWidget::duplicateFile()

#ifdef QT_DEBUG
if (status != FileManager::Status::Duplicated) {
qFatal("FATAL ERROR | %s:%d: '%s' did not get duplicated.", __FILE__, __LINE__, qPrintable(fileName));
qFatal("FATAL ERROR | %s:%d: '%s' could not be duplicated.", __FILE__, __LINE__, qPrintable(fileName));
}
#endif
}
Expand Down Expand Up @@ -1169,7 +1169,7 @@ bool CentralWidget::saveFile(int pIndex, bool pNeedNewFileName)

#ifdef QT_DEBUG
if (status != FileManager::Status::Renamed) {
qFatal("FATAL ERROR | %s:%d: '%s' did not get renamed to '%s'.", __FILE__, __LINE__, qPrintable(oldFileName), qPrintable(newFileName));
qFatal("FATAL ERROR | %s:%d: '%s' could not be renamed to '%s'.", __FILE__, __LINE__, qPrintable(oldFileName), qPrintable(newFileName));
}
#endif
}
Expand All @@ -1196,7 +1196,7 @@ bool CentralWidget::saveFile(int pIndex, bool pNeedNewFileName)

#ifdef QT_DEBUG
if (status != FileManager::Status::Removed) {
qFatal("FATAL ERROR | %s:%d: '%s' did not get unmanaged.", __FILE__, __LINE__, qPrintable(newFileName));
qFatal("FATAL ERROR | %s:%d: '%s' could not be unmanaged.", __FILE__, __LINE__, qPrintable(newFileName));
}

status =
Expand All @@ -1205,7 +1205,7 @@ bool CentralWidget::saveFile(int pIndex, bool pNeedNewFileName)

#ifdef QT_DEBUG
if (status != FileManager::Status::Added) {
qFatal("FATAL ERROR | %s:%d: '%s' did not get managed.", __FILE__, __LINE__, qPrintable(newFileName));
qFatal("FATAL ERROR | %s:%d: '%s' could not be managed.", __FILE__, __LINE__, qPrintable(newFileName));
}
#endif
}
Expand Down

0 comments on commit f1f1b0c

Please sign in to comment.