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
Utilities
Konsole
Commits
52f65666
Commit
52f65666
authored
Feb 07, 2012
by
Jekyll Wu
Browse files
Add dbus method for returning the name of the default profile
FEATURE:252532
FIXED-IN:4.9
parent
2a4795c5
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/ViewManager.cpp
View file @
52f65666
...
...
@@ -988,6 +988,11 @@ int ViewManager::newSession(QString profile, QString directory)
return
session
->
sessionId
();
}
QString
ViewManager
::
defaultProfile
()
{
return
SessionManager
::
instance
()
->
defaultProfile
()
->
name
();
}
QStringList
ViewManager
::
profileList
()
{
QStringList
list
;
...
...
src/ViewManager.h
View file @
52f65666
...
...
@@ -241,6 +241,9 @@ public slots:
*/
int
newSession
(
QString
profile
,
QString
directory
);
// DBus slot that returns the name of default profile
QString
defaultProfile
();
// DBus slot that returns a string list of defined (known) profiles
QStringList
profileList
();
...
...
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