author | tille <tille> | 2002-06-30 10:22:33 (UTC) |
---|---|---|
committer | tille <tille> | 2002-06-30 10:22:33 (UTC) |
commit | 1c6b25945236e3d6e4dd611ec6fc6003d5f87280 (patch) (side-by-side diff) | |
tree | 3d597ff89c347011b1b8fc16d4df090253b18520 /noncore/apps/confedit/mainwindow.cpp | |
parent | e8f9839b1650d202548c5730d3ff110d5242a499 (diff) | |
download | opie-1c6b25945236e3d6e4dd611ec6fc6003d5f87280.zip opie-1c6b25945236e3d6e4dd611ec6fc6003d5f87280.tar.gz opie-1c6b25945236e3d6e4dd611ec6fc6003d5f87280.tar.bz2 |
with control file
Diffstat (limited to 'noncore/apps/confedit/mainwindow.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/confedit/mainwindow.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/noncore/apps/confedit/mainwindow.cpp b/noncore/apps/confedit/mainwindow.cpp index 17a5058..fc403d2 100644 --- a/noncore/apps/confedit/mainwindow.cpp +++ b/noncore/apps/confedit/mainwindow.cpp @@ -75,4 +75,5 @@ MainWindow::MainWindow( QWidget *parent, const char *name, WFlags f ) : connect( settingList, SIGNAL( clicked( QListViewItem* ) ), this, SLOT( stopTimer( QListViewItem* ) ) ); + setCurrent(0); } @@ -120,4 +121,5 @@ MainWindow::~MainWindow() void MainWindow::setCurrent(QListViewItem *item) { + editor->hide(); if (!item) return; _item = (ListViewItemConf*) item; @@ -126,10 +128,10 @@ void MainWindow::setCurrent(QListViewItem *item) if (_item->getType() == ListViewItemConf::File) { - editor->hide(); updateGeometry(); _currentItem=0; _fileItem = (ListViewItemConfFile*)item; return; - }else editor->show(); + } + editor->show(); _fileItem = 0; _currentItem = (ListViewItemConfigEntry*)item; |