Use the correct QUrl constructor to open a local file.

This commit is contained in:
codestation
2016-10-23 12:04:53 -04:00
parent 5a9dc39396
commit 7a5065bfe4
2 changed files with 2 additions and 1 deletions

View File

@@ -629,6 +629,7 @@ void CmaEvent::vitaEventSendHttpObjectFromURL(vita_event_t *cma_event, int event
QString customVersion = settings.value("customversion", "00.000.000").toString();
// verify that the update file is really the 3.60 pup
// to prevent people updating to the wrong version and lose henkaku.
if(ignorexml && basename == "PSP2UPDAT.PUP" &&
(versiontype == "henkaku" ||
(versiontype == "custom" &&

View File

@@ -54,7 +54,7 @@ BackupItem::~BackupItem()
void BackupItem::openDirectory()
{
QDesktopServices::openUrl(QUrl("file://" + m_path));
QDesktopServices::openUrl(QUrl::fromLocalFile(m_path));
}
void BackupItem::removeEntry()