Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Utilities
Kate
Commits
df5b45ca
Commit
df5b45ca
authored
Feb 23, 2021
by
Marcell Fülöp
Browse files
comments / trivial
parent
094b7259
Changes
2
Hide whitespace changes
Inline
Side-by-side
kate/kateapp.cpp
View file @
df5b45ca
...
...
@@ -197,11 +197,7 @@ bool KateApp::startupKate()
KTextEditor
::
Document
*
doc
=
nullptr
;
const
QString
codec_name
=
codec
?
QString
::
fromLatin1
(
codec
->
name
())
:
QString
();
// Bug 397913: Reverse the order here so the new tabs are opened in same order as the files were passed in on the command line
// NOTE: apparently the cause of the above bug is not present, fix reversed
QString
positionalArgument
;
for
(
int
i
=
0
;
i
<
m_args
.
positionalArguments
().
count
();
++
i
)
{
positionalArgument
=
m_args
.
positionalArguments
().
at
(
i
);
for
(
const
auto
&
positionalArgument
:
m_args
.
positionalArguments
())
{
UrlInfo
info
(
positionalArgument
);
// this file is no local dir, open it, else warn
...
...
kate/main.cpp
View file @
df5b45ca
...
...
@@ -459,8 +459,6 @@ int main(int argc, char **argv)
QStringList
tokens
;
// open given files...
// Bug 397913: Reverse the order here so the new tabs are opened in same order as the files were passed in on the command line
// Cause of above bug not present, reversed...
for
(
int
i
=
0
;
i
<
urls
.
size
();
++
i
)
{
const
QString
&
url
=
urls
[
i
];
QDBusMessage
m
=
QDBusMessage
::
createMethodCall
(
serviceName
,
...
...
Write
Preview
Supports
Markdown
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