Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support opening .prx files #81

Merged
merged 1 commit into from
Mar 6, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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