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 | |||
@@ -74,6 +74,7 @@ MainWindow::MainWindow( QWidget *parent, const char *name, WFlags f ) : | |||
74 | qDebug("connect"); | 74 | qDebug("connect"); |
75 | connect( settingList, SIGNAL( clicked( QListViewItem* ) ), | 75 | connect( settingList, SIGNAL( clicked( QListViewItem* ) ), |
76 | this, SLOT( stopTimer( QListViewItem* ) ) ); | 76 | this, SLOT( stopTimer( QListViewItem* ) ) ); |
77 | setCurrent(0); | ||
77 | } | 78 | } |
78 | 79 | ||
79 | void MainWindow::makeMenu() | 80 | void MainWindow::makeMenu() |
@@ -119,18 +120,19 @@ MainWindow::~MainWindow() | |||
119 | 120 | ||
120 | void MainWindow::setCurrent(QListViewItem *item) | 121 | void MainWindow::setCurrent(QListViewItem *item) |
121 | { | 122 | { |
123 | editor->hide(); | ||
122 | if (!item) return; | 124 | if (!item) return; |
123 | _item = (ListViewItemConf*) item; | 125 | _item = (ListViewItemConf*) item; |
124 | if (!_item) return; | 126 | if (!_item) return; |
125 | popupTimer->start( 750, true ); | 127 | popupTimer->start( 750, true ); |
126 | if (_item->getType() == ListViewItemConf::File) | 128 | if (_item->getType() == ListViewItemConf::File) |
127 | { | 129 | { |
128 | editor->hide(); | ||
129 | updateGeometry(); | 130 | updateGeometry(); |
130 | _currentItem=0; | 131 | _currentItem=0; |
131 | _fileItem = (ListViewItemConfFile*)item; | 132 | _fileItem = (ListViewItemConfFile*)item; |
132 | return; | 133 | return; |
133 | }else editor->show(); | 134 | } |
135 | editor->show(); | ||
134 | _fileItem = 0; | 136 | _fileItem = 0; |
135 | _currentItem = (ListViewItemConfigEntry*)item; | 137 | _currentItem = (ListViewItemConfigEntry*)item; |
136 | if (!_currentItem) return; | 138 | if (!_currentItem) return; |