From 61b64d94313c8d6d456d44ec53c61d10e899d28c Mon Sep 17 00:00:00 2001 From: Al <26797547+Al12rs@users.noreply.github.com> Date: Mon, 20 Jan 2020 19:41:09 +0100 Subject: Make hidden files extension checks case insensitive --- src/mainwindow.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/mainwindow.cpp') 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())); -- cgit v1.3.1