Skip to content
Snippets Groups Projects
Commit 37167de3 authored by Elliot Oram's avatar Elliot Oram
Browse files

Add if clause for "" (old code to display all extensions)

Refs #23388
parent 0f1d71f7
No related branches found
No related tags found
No related merge requests found
......@@ -161,6 +161,9 @@ QString getFilter(const std::vector<std::string> &exts) {
*/
QString formatExtension(const std::string &extension) {
QString formattedExtension = QString::fromStdString(extension);
if (extension == "") {
return formattedExtension;
}
if (extension.at(0) == '*' && extension.at(1) == '.') {
return formattedExtension;
} else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment