]> pilppa.org Git - familiar-h63xx-build.git/blob - org.handhelds.familiar/packages/opie-console/opie-console-1.2.1/1647-bugfix.patch
OE tree imported from monotone branch org.openembedded.oz354fam083 at revision 8b12e3...
[familiar-h63xx-build.git] / org.handhelds.familiar / packages / opie-console / opie-console-1.2.1 / 1647-bugfix.patch
1 Index: opie-console/TEWidget.cpp
2 ===================================================================
3 RCS file: /cvs/opie/noncore/apps/opie-console/TEWidget.cpp,v
4 retrieving revision 1.13
5 retrieving revision 1.14
6 diff -u -u -r1.13 -r1.14
7 --- opie-console/TEWidget.cpp   21 Jan 2005 19:56:17 -0000      1.13
8 +++ opie-console/TEWidget.cpp   18 Oct 2005 13:56:12 -0000      1.14
9 @@ -320,16 +320,21 @@
10  
11    Config cfg("Konsole");
12    cfg.setGroup("ScrollBar");
13 -  switch( cfg.readNumEntry("Position",2)){
14 -  case 0:
15 -      scrollLoc = SCRNONE;
16 -      break;
17 -  case 1:
18 -      scrollLoc = SCRLEFT;
19 -      break;
20 -  case 2:
21 -      scrollLoc = SCRRIGHT;
22 -      break;
23 +  
24 +  scrollLoc = cfg.readNumEntry("Position", -1);
25 +
26 +  // bugfix for #1647
27 +  // if user set 'show scrollbar on left' then let it be on left
28 +  // but only if it is not set in opie-console itself
29 +  if(scrollLoc == -1)
30 +  {
31 +      Config qpecfg ("qpe");
32 +      qpecfg.setGroup("Appearance");
33 +      scrollLoc = qpecfg.readNumEntry("LeftHand", SCRRIGHT);
34 +      if(scrollLoc == 0)    // user set LeftHand in past and switched it off later
35 +      {
36 +         scrollLoc = SCRRIGHT;
37 +      }
38    };
39  
40    blinkT   = new QTimer(this);