author | llornkcor <llornkcor> | 2002-04-05 00:25:15 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2002-04-05 00:25:15 (UTC) |
commit | 8674b15e0768d5108d9a225ff2631538283e1019 (patch) (unidiff) | |
tree | 1c38a2f7b716d93a54d14c25ead304163a7176ee | |
parent | f2256529284d8b0f11c9b130d144e0d0a7724a27 (diff) | |
download | opie-8674b15e0768d5108d9a225ff2631538283e1019.zip opie-8674b15e0768d5108d9a225ff2631538283e1019.tar.gz opie-8674b15e0768d5108d9a225ff2631538283e1019.tar.bz2 |
small bug fix with having to hit the tabs option twice to make it at top, the first time
-rw-r--r-- | core/apps/embeddedkonsole/konsole.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/apps/embeddedkonsole/konsole.cpp b/core/apps/embeddedkonsole/konsole.cpp index bd33ba6..217d8d8 100644 --- a/core/apps/embeddedkonsole/konsole.cpp +++ b/core/apps/embeddedkonsole/konsole.cpp | |||
@@ -721,33 +721,33 @@ void Konsole::colorMenuSelected(int iD) | |||
721 | } | 721 | } |
722 | } | 722 | } |
723 | lastSelectedMenu = iD; | 723 | lastSelectedMenu = iD; |
724 | te->setColorTable(m_table); | 724 | te->setColorTable(m_table); |
725 | update(); | 725 | update(); |
726 | } | 726 | } |
727 | 727 | ||
728 | void Konsole::configMenuSelected(int iD) | 728 | void Konsole::configMenuSelected(int iD) |
729 | { | 729 | { |
730 | // QString temp; | 730 | // QString temp; |
731 | // qDebug( temp.sprintf("configmenu %d",iD)); | 731 | // qDebug( temp.sprintf("configmenu %d",iD)); |
732 | TEWidget* te = getTe(); | 732 | TEWidget* te = getTe(); |
733 | Config cfg("Konsole"); | 733 | Config cfg("Konsole"); |
734 | cfg.setGroup("Menubar"); | 734 | cfg.setGroup("Menubar"); |
735 | if( iD == -4) { | 735 | if( iD == -4) { |
736 | cfg.setGroup("Tabs"); | 736 | cfg.setGroup("Tabs"); |
737 | QString tmp=cfg.readEntry("Position","Top"); | 737 | QString tmp=cfg.readEntry("Position","Bottom"); |
738 | 738 | ||
739 | if(tmp=="Top") { | 739 | if(tmp=="Top") { |
740 | tab->setTabPosition(QTabWidget::Bottom); | 740 | tab->setTabPosition(QTabWidget::Bottom); |
741 | configMenu->changeItem( iD,"Tabs on Top"); | 741 | configMenu->changeItem( iD,"Tabs on Top"); |
742 | cfg.writeEntry("Position","Bottom"); | 742 | cfg.writeEntry("Position","Bottom"); |
743 | } else { | 743 | } else { |
744 | tab->setTabPosition(QTabWidget::Top); | 744 | tab->setTabPosition(QTabWidget::Top); |
745 | configMenu->changeItem( iD,"Tabs on Bottom"); | 745 | configMenu->changeItem( iD,"Tabs on Bottom"); |
746 | cfg.writeEntry("Position","Top"); | 746 | cfg.writeEntry("Position","Top"); |
747 | } | 747 | } |
748 | } | 748 | } |
749 | } | 749 | } |
750 | 750 | ||
751 | void Konsole::changeCommand(const QString &text, int c) | 751 | void Konsole::changeCommand(const QString &text, int c) |
752 | { | 752 | { |
753 | Config cfg("Konsole"); | 753 | Config cfg("Konsole"); |