Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Donald Haase
Cockatrice
Commits
3375d455
Commit
3375d455
authored
Aug 07, 2014
by
Peng Liu
Browse files
Logically inverted the if... else statement by removing the logical not (!). Cleaned up a ;;.
parent
60547969
Changes
1
Hide whitespace changes
Inline
Side-by-side
oracle/src/oraclewizard.cpp
View file @
3375d455
...
@@ -412,17 +412,17 @@ bool SaveSetsPage::validatePage()
...
@@ -412,17 +412,17 @@ bool SaveSetsPage::validatePage()
do
{
do
{
QString
fileName
;
QString
fileName
;
if
(
savePath
.
isEmpty
())
{
if
(
savePath
.
isEmpty
())
{
if
(
!
defaultPathCheckBox
->
isChecked
())
if
(
defaultPathCheckBox
->
isChecked
())
fileName
=
QFileDialog
::
getSaveFileName
(
this
,
windowName
,
dataDir
+
"/cards.xml"
,
fileType
)
;
fileName
=
dataDir
+
"/cards.xml"
;
else
else
fileName
=
dataDir
+
"/cards.xml"
;
;
fileName
=
QFileDialog
::
getSaveFileName
(
this
,
windowName
,
dataDir
+
"/cards.xml"
,
fileType
)
;
settings
->
setValue
(
"paths/carddatabase"
,
fileName
);
settings
->
setValue
(
"paths/carddatabase"
,
fileName
);
}
}
else
{
else
{
if
(
!
defaultPathCheckBox
->
isChecked
())
if
(
defaultPathCheckBox
->
isChecked
())
fileName
=
QFileDialog
::
getSaveFileName
(
this
,
windowName
,
savePath
,
fileType
);
else
fileName
=
savePath
;
fileName
=
savePath
;
else
fileName
=
QFileDialog
::
getSaveFileName
(
this
,
windowName
,
savePath
,
fileType
);
}
}
if
(
fileName
.
isEmpty
())
{
if
(
fileName
.
isEmpty
())
{
return
false
;
return
false
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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