author | llornkcor <llornkcor> | 2002-12-05 18:34:46 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2002-12-05 18:34:46 (UTC) |
commit | 418fd5dab5503755aa1783d404576252684d4a96 (patch) (unidiff) | |
tree | 27dcb2f8df27ad140af6270204efcbd8dceab23d /core/apps/embeddedkonsole | |
parent | 91c39b24a9fdf4129fa50f1bab3ec9a6fee0769c (diff) | |
download | opie-418fd5dab5503755aa1783d404576252684d4a96.zip opie-418fd5dab5503755aa1783d404576252684d4a96.tar.gz opie-418fd5dab5503755aa1783d404576252684d4a96.tar.bz2 |
fix beeping
-rw-r--r-- | core/apps/embeddedkonsole/konsole.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/core/apps/embeddedkonsole/konsole.cpp b/core/apps/embeddedkonsole/konsole.cpp index 70acc42..9be4674 100644 --- a/core/apps/embeddedkonsole/konsole.cpp +++ b/core/apps/embeddedkonsole/konsole.cpp | |||
@@ -376,6 +376,7 @@ void Konsole::init(const char* _pgm, QStrList & _args) | |||
376 | 376 | ||
377 | jut = configMenu->insertItem(tr( "Use Beep" )); | 377 | jut = configMenu->insertItem(tr( "Use Beep" )); |
378 | cfg.setGroup("Menubar"); | 378 | cfg.setGroup("Menubar"); |
379 | |||
379 | configMenu->setItemChecked(jut, cfg.readBoolEntry("useBeep",0)); | 380 | configMenu->setItemChecked(jut, cfg.readBoolEntry("useBeep",0)); |
380 | 381 | ||
381 | 382 | ||
@@ -615,6 +616,12 @@ void Konsole::doneSession(TESession*, int ) | |||
615 | void Konsole::newSession() { | 616 | void Konsole::newSession() { |
616 | if(nsessions < 15) { // seems to be something weird about 16 tabs on the Zaurus.... memory? | 617 | if(nsessions < 15) { // seems to be something weird about 16 tabs on the Zaurus.... memory? |
617 | TEWidget* te = new TEWidget(tab); | 618 | TEWidget* te = new TEWidget(tab); |
619 | if(nsessions == 0) { //set this the first time only | ||
620 | Config c("Konsole"); | ||
621 | c.setGroup("Menubar"); | ||
622 | te->useBeep=c.readBoolEntry("useBeep",0); | ||
623 | } | ||
624 | |||
618 | // te->setBackgroundMode(PaletteBase); //we want transparent!! | 625 | // te->setBackgroundMode(PaletteBase); //we want transparent!! |
619 | te->setVTFont(fonts.at(cfont)->getFont()); | 626 | te->setVTFont(fonts.at(cfont)->getFont()); |
620 | tab->addTab(te); | 627 | tab->addTab(te); |