diff options
| author | Al <26797547+Al12rs@users.noreply.github.com> | 2020-01-20 19:41:09 +0100 |
|---|---|---|
| committer | Al <26797547+Al12rs@users.noreply.github.com> | 2020-01-20 19:41:09 +0100 |
| commit | 61b64d94313c8d6d456d44ec53c61d10e899d28c (patch) | |
| tree | cef405d58d9b34f8b420dc07ab395d7195e5f68d /src/mainwindow.cpp | |
| parent | 3e98a6e5bf8bb38a6766d955d3cb746fc886c8ab (diff) | |
Make hidden files extension checks case insensitive
Diffstat (limited to 'src/mainwindow.cpp')
| -rw-r--r-- | src/mainwindow.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index be8eaef8..4f665872 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -1743,7 +1743,7 @@ void MainWindow::updateTo(QTreeWidgetItem *subTree, const std::wstring &director font.setItalic(true); fileChild->setFont(0, font); fileChild->setFont(1, font); - } else if (fileName.endsWith(ModInfo::s_HiddenExt)) { + } else if (fileName.endsWith(ModInfo::s_HiddenExt, Qt::CaseInsensitive)) { QFont font = fileChild->font(0); font.setStrikeOut(true); fileChild->setFont(0, font); @@ -5560,7 +5560,7 @@ void MainWindow::on_dataTree_customContextMenuRequested(const QPoint &pos) // offer to hide/unhide file, but not for files from archives if (!isArchive) { - if (m_ContextItem->text(0).endsWith(ModInfo::s_HiddenExt)) { + if (m_ContextItem->text(0).endsWith(ModInfo::s_HiddenExt, Qt::CaseInsensitive)) { menu.addAction(tr("Un-Hide"), this, SLOT(unhideFile())); } else { menu.addAction(tr("Hide"), this, SLOT(hideFile())); |
