[rkward/work/preview_with_menu] rkward/plugin: Small fix to width saving.

Thomas Friedrichsmeier thomas.friedrichsmeier at ruhr-uni-bochum.de
Wed Feb 3 15:52:45 UTC 2016


Git commit 684946b67a4a05d36adf5d7d8c1bcffdfa81a657 by Thomas Friedrichsmeier.
Committed on 03/02/2016 at 15:52.
Pushed by tfry into branch 'work/preview_with_menu'.

Small fix to width saving.

M  +1    -1    rkward/plugin/rkstandardcomponentgui.cpp

http://commits.kde.org/rkward/684946b67a4a05d36adf5d7d8c1bcffdfa81a657

diff --git a/rkward/plugin/rkstandardcomponentgui.cpp b/rkward/plugin/rkstandardcomponentgui.cpp
index 68290fc..f3223bf 100644
--- a/rkward/plugin/rkstandardcomponentgui.cpp
+++ b/rkward/plugin/rkstandardcomponentgui.cpp
@@ -84,7 +84,7 @@ RKStandardComponentGUI::~RKStandardComponentGUI () {
 	if (!enslaved && toggle_code_box && splitter) {  // A top-level dialog-style UI
 		for (int i = 0; i < previews.size (); ++i) {
 			bool visible = previews[i].controller->boolValue ();
-			int size = previews[i].area->width ();
+			int size = preview_splitter->width ();
 			if (i == previews.size () - 1) {  // code preview
 				RKSettingsModulePlugins::setShowCodeByDefault (visible);
 				if (visible) RKSettingsModulePlugins::setDefaultCodeHeight (size);



More information about the rkward-tracker mailing list