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
Konsole
Commits
358697be
Commit
358697be
authored
Nov 09, 2020
by
Carlos Alves
Browse files
Fix dbus sessionList
Order the list by tab order. ISSUE:
#13
FIXED-IN: 20.12
parent
5f006d89
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/ViewManager.cpp
View file @
358697be
...
...
@@ -1044,8 +1044,11 @@ QStringList ViewManager::sessionList()
{
QStringList
ids
;
for
(
auto
sdsp
:
_sessionMap
)
{
ids
.
append
(
QString
::
number
(
sdsp
->
session
()
->
sessionId
()
)
);
for
(
int
i
=
0
;
i
<
_viewContainer
->
count
();
i
++
)
{
auto
terminaldisplayList
=
_viewContainer
->
widget
(
i
)
->
findChildren
<
TerminalDisplay
*>
();
for
(
auto
*
terminaldisplay
:
terminaldisplayList
)
{
ids
.
append
(
QString
::
number
(
terminaldisplay
->
sessionController
()
->
session
()
->
sessionId
()));
}
}
return
ids
;
...
...
src/ViewManager.h
View file @
358697be
...
...
@@ -251,7 +251,7 @@ public Q_SLOTS:
/**
* DBus slot that returns the unique ids of the sessions in the
* current view. The returned list is
not sorted
.
* current view. The returned list is
ordered by tab
.
* QList<int> is not printable by qdbus so we use QStringList
*/
Q_SCRIPTABLE
QStringList
sessionList
();
...
...
Carlos Alves
@carlosbalves
mentioned in commit
adc6f2ed
·
Nov 11, 2020
mentioned in commit
adc6f2ed
mentioned in commit adc6f2ed46824c7928ff4f3dfdfd6434df24d504
Toggle commit list
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