Skip to content

Commit

Permalink
Add file filter for *.DAT in CCEdit and CC2Edit
Browse files Browse the repository at this point in the history
  • Loading branch information
Eggbertx committed Oct 1, 2022
1 parent d34d2e3 commit f6d07f8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/CC2Edit/CC2Edit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1703,7 +1703,7 @@ void CC2EditMain::onImportCC1Action()
QSettings settings;
QString filename = QFileDialog::getOpenFileName(this, tr("Import Map..."),
settings.value(QStringLiteral("Import/DialogDir")).toString(),
tr("CC1 Levelsets (*.ccl *.dat)"));
tr("CC1 Levelsets (*.ccl *.dat *.DAT)"));
if (!filename.isEmpty()) {
ImportDialog dialog(this);
dialog.loadLevelset(filename);
Expand Down
4 changes: 2 additions & 2 deletions src/CCEdit/CCEdit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1397,7 +1397,7 @@ void CCEditMain::onOpenAction()
QSettings settings;
QString filename = QFileDialog::getOpenFileName(this, tr("Open Levelset..."),
settings.value(QStringLiteral("DialogDir")).toString(),
tr("All Levelsets (*.dat *.dac *.ccl)"));
tr("All Levelsets (*.dat *.DAT *.dac *.ccl)"));
if (!filename.isEmpty()) {
loadLevelset(filename);
settings.setValue(QStringLiteral("DialogDir"),
Expand All @@ -1417,7 +1417,7 @@ void CCEditMain::onSaveAsAction()
{
QSettings settings;
QString filter = m_useDac ? tr("TWorld Levelsets (*.dac)")
: tr("CC Levelsets (*.dat *.ccl)");
: tr("CC Levelsets (*.dat *.DAT *.ccl)");

if (m_levelsetFilename.isEmpty())
m_levelsetFilename = settings.value(QStringLiteral("DialogDir")).toString();
Expand Down

0 comments on commit f6d07f8

Please sign in to comment.