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
Network
KTorrent
Commits
b6f8585c
Commit
b6f8585c
authored
Mar 30, 2011
by
Joris
Browse files
Make sure activities list is added again to the GUI after toolbars are edited
BUG: 269727
parent
1f5373a4
Changes
3
Hide whitespace changes
Inline
Side-by-side
ChangeLog
View file @
b6f8585c
...
...
@@ -10,6 +10,7 @@ Changes in 4.2:
Changes in 4.1.1:
- Make sure that libktorrent translation catalog is inserted (269515)
- Fix wrong tooltip in QM preference page
- Make sure activities list is added again to the GUI after toolbars are edited (269727)
Changes in 4.1:
- Check if source files are missing before moving them (265607)
...
...
ktorrent/gui.cpp
View file @
b6f8585c
...
...
@@ -76,10 +76,6 @@
#include <interfaces/functions.h>
namespace
kt
{
GUI
::
GUI
()
:
core
(
0
),
pref_dlg
(
0
)
...
...
@@ -380,17 +376,21 @@ namespace kt
KShortcutsDialog
::
configure
(
actionCollection
());
}
void
GUI
::
configureTool
B
ars
()
void
GUI
::
configureTool
b
ars
()
{
saveMainWindowSettings
(
KGlobal
::
config
()
->
group
(
"MainWindow"
));
saveMainWindowSettings
(
KGlobal
::
config
()
->
group
(
"MainWindow"
));
KEditToolBar
dlg
(
factory
());
connect
(
&
dlg
,
SIGNAL
(
newToolBarConfig
()),
this
,
SLOT
(
newToolBarConfig
()));
dlg
.
exec
();
// Replug action list
unplugActionList
(
"activities_list"
);
plugActionList
(
"activities_list"
,
central
->
activitySwitchingActions
());
}
void
GUI
::
newToolBarConfig
()
// This is called when OK, Apply or Defaults is clicked
{
applyMainWindowSettings
(
KGlobal
::
config
()
->
group
(
"MainWindow"
)
);
applyMainWindowSettings
(
KGlobal
::
config
()
->
group
(
"MainWindow"
));
}
void
GUI
::
import
()
...
...
@@ -420,7 +420,7 @@ namespace kt
KStandardAction
::
preferences
(
this
,
SLOT
(
showPrefDialog
()),
ac
);
KStandardAction
::
keyBindings
(
this
,
SLOT
(
configureKeys
()),
ac
);
KStandardAction
::
configureToolbars
(
this
,
SLOT
(
configureTool
B
ars
()),
ac
);
KStandardAction
::
configureToolbars
(
this
,
SLOT
(
configureTool
b
ars
()),
ac
);
KStandardAction
::
configureNotifications
(
this
,
SLOT
(
configureNotifications
()),
ac
);
...
...
ktorrent/gui.h
View file @
b6f8585c
...
...
@@ -104,7 +104,7 @@ namespace kt
void
showMenuBar
();
void
showIPFilter
();
void
configureKeys
();
void
configureTool
B
ars
();
void
configureTool
b
ars
();
void
newToolBarConfig
();
void
import
();
void
update
();
...
...
Write
Preview
Markdown
is supported
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