Commit 8c574013 authored by Farid Boudedja's avatar Farid Boudedja

Use ISO image from command line args (if supplied)

parent 8b407cf6
......@@ -20,9 +20,25 @@ IsoPage::IsoPage(QWidget *parent)
setTitle(i18n("Select ISO image"));
setSubTitle(i18n("Please select an ISO image to write to a USB flash drive"));
connect(m_isoSelectButton, &QPushButton::clicked, this, &IsoPage::openIsoImage);
m_lastOpenedDir = mApp->getInitialDir();
connect(m_isoSelectButton, &QPushButton::clicked, this, &IsoPage::openIsoImage);
// Get path to ISO from the command line arguments (if supplied)
QString isoImage = mApp->getInitialImage();
if (!isoImage.isEmpty())
if (isoImage.left(7) == "file://")
isoImage = QUrl(isoImage).toLocalFile();
if (!isoImage.isEmpty())
isoImage = QDir(isoImage).absolutePath();
// Update the default open dir
m_lastOpenedDir = isoImage.left(isoImage.lastIndexOf('/'));
void IsoPage::setupUi()
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment