summaryrefslogtreecommitdiff
path: root/noncore/apps/opie-console/mainwindow.cpp
Unidiff
Diffstat (limited to 'noncore/apps/opie-console/mainwindow.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/opie-console/mainwindow.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/noncore/apps/opie-console/mainwindow.cpp b/noncore/apps/opie-console/mainwindow.cpp
index fbeaa74..88727e4 100644
--- a/noncore/apps/opie-console/mainwindow.cpp
+++ b/noncore/apps/opie-console/mainwindow.cpp
@@ -181,53 +181,55 @@ void MainWindow::slotConfigure() {
181 181
182 int ret = conf.exec(); 182 int ret = conf.exec();
183 183
184 if ( QDialog::Accepted == ret ) { 184 if ( QDialog::Accepted == ret ) {
185 qWarning("conf %d", conf.list().count() ); 185 qWarning("conf %d", conf.list().count() );
186 manager()->setProfiles( conf.list() ); 186 manager()->setProfiles( conf.list() );
187 populateProfiles(); 187 populateProfiles();
188 } 188 }
189} 189}
190/* 190/*
191 * we will remove 191 * we will remove
192 * this window from the tabwidget 192 * this window from the tabwidget
193 * remove it from the list 193 * remove it from the list
194 * delete it 194 * delete it
195 * and set the currentSession() 195 * and set the currentSession()
196 */ 196 */
197void MainWindow::slotClose() { 197void MainWindow::slotClose() {
198 qWarning("close"); 198 qWarning("close");
199 if (!currentSession() ) 199 if (!currentSession() )
200 return; 200 return;
201 201
202 tabWidget()->remove( currentSession() ); 202 tabWidget()->remove( currentSession() );
203 /*it's autodelete */ 203 /*it's autodelete */
204 m_sessions.remove( m_curSession ); 204 m_sessions.remove( m_curSession );
205 m_curSession = m_sessions.first(); 205 m_curSession = m_sessions.first();
206 tabWidget()->setCurrent( m_curSession ); 206 tabWidget()->setCurrent( m_curSession );
207} 207}
208 208
209/* 209/*
210 * We will get the name 210 * We will get the name
211 * Then the profile 211 * Then the profile
212 * and then we will make a profile 212 * and then we will make a profile
213 */ 213 */
214void MainWindow::slotProfile( int id) { 214void MainWindow::slotProfile( int id) {
215 Profile prof = manager()->profile( m_sessionsPop->text( id) ); 215 Profile prof = manager()->profile( m_sessionsPop->text( id) );
216 create( prof ); 216 create( prof );
217} 217}
218void MainWindow::create( const Profile& prof ) { 218void MainWindow::create( const Profile& prof ) {
219 Session *ses = manager()->fromProfile( prof, tabWidget() ); 219 Session *ses = manager()->fromProfile( prof, tabWidget() );
220 220
221 m_sessions.append( ses ); 221 m_sessions.append( ses );
222 tabWidget()->add( ses ); 222 tabWidget()->add( ses );
223 m_curSession = ses; 223 m_curSession = ses;
224 224
225} 225}
226 226
227void MainWindow::slotTransfer() 227void MainWindow::slotTransfer()
228{ 228{
229 if ( currentSession() ) {
229 TransferDialog dlg(this); 230 TransferDialog dlg(this);
230 dlg.showMaximized(); 231 dlg.showMaximized();
231 dlg.exec(); 232 dlg.exec();
233 }
232} 234}
233 235