summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--ChangeLog1
-rw-r--r--noncore/apps/opie-console/TEWidget.cpp25
2 files changed, 16 insertions, 10 deletions
diff --git a/ChangeLog b/ChangeLog
index 2922afd..24ae63c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -9,6 +9,7 @@
----------
* #1695 - Date selector use too small fontsize on VGA screen (hrw)
* #1686 - opie-console lack UI setting for switching scrollbar (hrw)
+ * #1647 - Opie-console doesn't respect scroll-bar on left side (hrw)
* #1624 - Button settngs changes are applied only after restart (hrw)
* #1492 - Backup and Restore does not show list of backups to restore on start (hrw)
* n.a. - remove hardcoded font size from wellenreiter (hrw)
diff --git a/noncore/apps/opie-console/TEWidget.cpp b/noncore/apps/opie-console/TEWidget.cpp
index 1199e4f..117f6dd 100644
--- a/noncore/apps/opie-console/TEWidget.cpp
+++ b/noncore/apps/opie-console/TEWidget.cpp
@@ -320,16 +320,21 @@ TEWidget::TEWidget(QWidget *parent, const char *name) : QFrame(parent,name)
Config cfg("Konsole");
cfg.setGroup("ScrollBar");
- switch( cfg.readNumEntry("Position",2)){
- case 0:
- scrollLoc = SCRNONE;
- break;
- case 1:
- scrollLoc = SCRLEFT;
- break;
- case 2:
- scrollLoc = SCRRIGHT;
- break;
+
+ scrollLoc = cfg.readNumEntry("Position", -1);
+
+ // bugfix for #1647
+ // if user set 'show scrollbar on left' then let it be on left
+ // but only if it is not set in opie-console itself
+ if(scrollLoc == -1)
+ {
+ Config qpecfg ("qpe");
+ qpecfg.setGroup("Appearance");
+ scrollLoc = qpecfg.readNumEntry("LeftHand", SCRRIGHT);
+ if(scrollLoc == 0) // user set LeftHand in past and switched it off later
+ {
+ scrollLoc = SCRRIGHT;
+ }
};
blinkT = new QTimer(this);