Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Farid Boudedja
ISO Image Writer
Commits
8c574013
Commit
8c574013
authored
Jun 02, 2019
by
Farid Boudedja
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use ISO image from command line args (if supplied)
parent
8b407cf6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
1 deletion
+17
-1
isoimagewriter/isopage.cpp
isoimagewriter/isopage.cpp
+17
-1
No files found.
isoimagewriter/isopage.cpp
View file @
8c574013
...
...
@@ -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
(
'/'
));
processIsoImage
(
isoImage
);
}
}
}
void
IsoPage
::
setupUi
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment