From 418fd5dab5503755aa1783d404576252684d4a96 Mon Sep 17 00:00:00 2001 From: llornkcor Date: Thu, 05 Dec 2002 18:34:46 +0000 Subject: fix beeping --- 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) jut = configMenu->insertItem(tr( "Use Beep" )); cfg.setGroup("Menubar"); + configMenu->setItemChecked(jut, cfg.readBoolEntry("useBeep",0)); @@ -615,6 +616,12 @@ void Konsole::doneSession(TESession*, int ) void Konsole::newSession() { if(nsessions < 15) { // seems to be something weird about 16 tabs on the Zaurus.... memory? TEWidget* te = new TEWidget(tab); + if(nsessions == 0) { //set this the first time only + Config c("Konsole"); + c.setGroup("Menubar"); + te->useBeep=c.readBoolEntry("useBeep",0); + } + // te->setBackgroundMode(PaletteBase); //we want transparent!! te->setVTFont(fonts.at(cfont)->getFont()); tab->addTab(te); -- cgit v0.9.0.2