Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Games
Palapeli
Commits
d2384796
Commit
d2384796
authored
Aug 08, 2022
by
Nicolas Fella
Browse files
Fix opening file from arguments
Indexing starts at 0, not 1
parent
1ba706f6
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main.cpp
View file @
d2384796
...
...
@@ -56,8 +56,8 @@ int main(int argc, char** argv)
else
{
const
QStringList
args
=
parser
.
positionalArguments
();
QString
path
;
if
(
args
.
count
()
>
1
)
{
path
=
args
.
a
t
(
1
);
if
(
!
args
.
isEmpty
()
)
{
path
=
args
.
firs
t
();
}
//no import request, show main window
(
new
Palapeli
::
MainWindow
(
path
))
->
show
();
...
...
Nicolas Fella
@nicolasfella
mentioned in commit
2e966ae9
·
Aug 12, 2022
mentioned in commit
2e966ae9
mentioned in commit 2e966ae9b31120b27bae4330e0a72ae7d16c8ab6
Toggle commit list
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