Skip to content

Commit

Permalink
Merge pull request #81 from dpogue/prx-support
Browse files Browse the repository at this point in the history
Support opening .prx files
  • Loading branch information
zrax committed Mar 6, 2024
2 parents 228f0e5 + 71a145e commit 26de95a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/PrpShop/Main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -784,9 +784,9 @@ void PrpShopMain::openFiles()
{
QStringList files = QFileDialog::getOpenFileNames(this,
tr("Open File(s)"), fDialogDir,
"All supported types (*.age *.prp);;"
"All supported types (*.age *.prp *.prx);;"
"Age Files (*.age);;"
"Page Files (*.prp)");
"Page Files (*.prp *.prx)");
QStringList filesIt = files;
for (QStringList::Iterator it = filesIt.begin(); it != filesIt.end(); it++) {
loadFile(*it);
Expand Down Expand Up @@ -852,7 +852,7 @@ void PrpShopMain::loadFile(QString filename)
QMessageBox::Ok, this);
msgBox.exec();
}
} else if (filename.endsWith(".prp", Qt::CaseInsensitive)) {
} else if (filename.endsWith(".prp", Qt::CaseInsensitive) || filename.endsWith(".prx", Qt::CaseInsensitive)) {
try {
plPageInfo* page = fResMgr.ReadPage(qstr2st(filename));
QPlasmaTreeItem* pageItem = loadPage(page, filename);
Expand Down

0 comments on commit 26de95a

Please sign in to comment.