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
c5f0c679
Commit
c5f0c679
authored
Mar 21, 2012
by
Jekyll Wu
Browse files
Prefer the convenient methods for accesing profile options
parent
064c9922
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/EditProfileDialog.cpp
View file @
c5f0c679
...
...
@@ -547,8 +547,7 @@ void EditProfileDialog::updateKeyBindingsList(bool selectCurrentTranslator)
if
(
!
_ui
->
keyBindingList
->
model
())
_ui
->
keyBindingList
->
setModel
(
new
QStandardItemModel
(
this
));
const
QString
&
name
=
lookupProfile
()
->
property
<
QString
>
(
Profile
::
KeyBindings
);
const
QString
&
name
=
lookupProfile
()
->
keyBindings
();
KeyboardTranslatorManager
*
keyManager
=
KeyboardTranslatorManager
::
instance
();
const
KeyboardTranslator
*
currentTranslator
=
keyManager
->
findTranslator
(
name
);
...
...
src/SessionManager.cpp
View file @
c5f0c679
...
...
@@ -123,7 +123,7 @@ SessionManager* SessionManager::instance()
Profile
::
Ptr
SessionManager
::
loadProfile
(
const
QString
&
shortPath
)
{
// the fallback profile has a 'special' path name, "FALLBACK/"
if
(
shortPath
==
_fallbackProfile
->
p
roperty
<
QString
>
(
Profile
::
P
ath
))
if
(
shortPath
==
_fallbackProfile
->
path
(
))
return
_fallbackProfile
;
QString
path
=
shortPath
;
...
...
@@ -221,7 +221,7 @@ void SessionManager::sortProfiles(QList<Profile::Ptr>& list)
for
(
int
i
=
0
;
i
<
list
.
size
();
++
i
)
{
// dis-regard the fallback profile
if
(
list
.
at
(
i
)
->
path
()
==
_fallbackProfile
->
p
roperty
<
QString
>
(
Profile
::
P
ath
))
if
(
list
.
at
(
i
)
->
path
()
==
_fallbackProfile
->
path
(
))
continue
;
if
(
list
.
at
(
i
)
->
menuIndexAsInt
()
==
0
)
...
...
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