author | llornkcor <llornkcor> | 2002-12-05 18:34:46 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2002-12-05 18:34:46 (UTC) |
commit | 418fd5dab5503755aa1783d404576252684d4a96 (patch) (side-by-side diff) | |
tree | 27dcb2f8df27ad140af6270204efcbd8dceab23d /core/apps/embeddedkonsole/konsole.cpp | |
parent | 91c39b24a9fdf4129fa50f1bab3ec9a6fee0769c (diff) | |
download | opie-418fd5dab5503755aa1783d404576252684d4a96.zip opie-418fd5dab5503755aa1783d404576252684d4a96.tar.gz opie-418fd5dab5503755aa1783d404576252684d4a96.tar.bz2 |
fix beeping
Diffstat (limited to 'core/apps/embeddedkonsole/konsole.cpp') (more/less context) (ignore whitespace changes)
-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 @@ -367,24 +367,25 @@ void Konsole::init(const char* _pgm, QStrList & _args) scrollMenu->insertItem(tr( "Right" )); // scrollMenu->insertSeparator(4); // scrollMenu->insertItem(tr( "Horizontal" )); configMenu->insertItem(tr( "ScrollBar" ),scrollMenu); int jut = configMenu->insertItem(tr( "Wrap" )); cfg.setGroup("ScrollBar"); configMenu->setItemChecked(jut, cfg.readBoolEntry("HorzScroll",0)); jut = configMenu->insertItem(tr( "Use Beep" )); cfg.setGroup("Menubar"); + configMenu->setItemChecked(jut, cfg.readBoolEntry("useBeep",0)); //scrollMenuSelected(-29); // cfg.setGroup("ScrollBar"); // if(cfg.readBoolEntry("HorzScroll",0)) { // if(cfg.readNumEntry("Position",2) == 0) // te->setScrollbarLocation(1); // else // te->setScrollbarLocation(0); // te->setScrollbarLocation( cfg.readNumEntry("Position",2)); // te->setWrapAt(120); @@ -606,24 +607,30 @@ void Konsole::doneSession(TESession*, int ) delete te; nsessions--; } if (nsessions == 0) { close(); } } 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); TESession* se = new TESession(this, te, se_pgm, se_args, "xterm"); te->currentSession = se; connect( se, SIGNAL(done(TESession*,int)), this, SLOT(doneSession(TESession*,int)) ); se->run(); se->setConnect(TRUE); se->setHistory(b_scroll); tab->setCurrentPage(nsessions); nsessions++; doWrap(); |