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
System
Apper
Commits
b3410a12
Commit
b3410a12
authored
Jan 05, 2013
by
Daniel Nicoletti
Browse files
Fix going back to origins page and debug checked but not honored
Fixes RedHat bug: 891294
parent
3918b6e3
Changes
3
Hide whitespace changes
Inline
Side-by-side
ApperKCM/ApperKCM.cpp
View file @
b3410a12
...
...
@@ -482,9 +482,10 @@ void ApperKCM::setPage(const QString &page)
setButtons
(
KCModule
::
Default
|
KCModule
::
Apply
);
emit
changed
(
true
);
// THIS IS DUMB setButtons only take effect after changed goes true
emit
changed
(
false
);
generalSettingsPB
->
setChecked
(
true
);
stackedWidgetBar
->
setCurrentIndex
(
BAR_SETTINGS
);
stackedWidget
->
setCurrentWidget
(
m_settingsPage
);
m_settingsPage
->
load
();
stackedWidgetBar
->
setCurrentIndex
(
BAR_SETTINGS
);
titleL
->
clear
();
backTB
->
setEnabled
(
true
);
}
...
...
ApperKCM/Settings/Settings.cpp
View file @
b3410a12
...
...
@@ -156,6 +156,13 @@ void Settings::on_showOriginsCB_stateChanged(int state)
if
(
!
transaction
->
error
())
{
m_busySeq
->
start
();
}
KConfig
config
(
"apper"
);
KConfigGroup
originsDialog
(
&
config
,
"originsDialog"
);
bool
showDevel
=
originsDialog
.
readEntry
(
"showDevel"
,
false
);
if
(
showDevel
!=
ui
->
showOriginsCB
->
isChecked
())
{
originsDialog
.
writeEntry
(
"showDevel"
,
ui
->
showOriginsCB
->
isChecked
());
}
}
bool
Settings
::
hasChanges
()
const
...
...
@@ -254,7 +261,13 @@ void Settings::load()
// Load origns list
if
(
m_roles
&
Transaction
::
RoleGetRepoList
)
{
on_showOriginsCB_stateChanged
(
Qt
::
Unchecked
);
KConfigGroup
originsDialog
(
&
config
,
"originsDialog"
);
bool
showDevel
=
originsDialog
.
readEntry
(
"showDevel"
,
false
);
ui
->
showOriginsCB
->
setChecked
(
showDevel
);
on_showOriginsCB_stateChanged
(
ui
->
showOriginsCB
->
checkState
());
ui
->
originTV
->
setEnabled
(
true
);
}
else
{
ui
->
originTV
->
setEnabled
(
false
);
}
// hide battery options if we are on a desktop computer
...
...
plasmoid/updaterapplet.cpp
View file @
b3410a12
...
...
@@ -29,16 +29,11 @@
#include
<QtDeclarative/QDeclarativeContext>
#include
<QtDeclarative>
#include
<QDBusConnection>
#include
<QDBusServiceWatcher>
#include
<Plasma/ToolTipManager>
#include
<Plasma/ToolTipContent>
#include
<Plasma/DeclarativeWidget>
#include
<Plasma/Package>
#include
<KNotification>
#include
<PackageModel.h>
#include
<PkTransaction.h>
#include
<PkTransactionProgressModel.h>
...
...
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