Skip to content

Commit

Permalink
Support opening .prx files
Browse files Browse the repository at this point in the history
This doesn't really do anything useful, since there are no compatible
prx files available, but libHSPlasma does support doing this.
  • Loading branch information
dpogue committed Mar 6, 2024
1 parent 228f0e5 commit 71a145e
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 71a145e

Please sign in to comment.