Diffstat (limited to 'noncore/apps/opie-console/mainwindow.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/opie-console/mainwindow.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/noncore/apps/opie-console/mainwindow.cpp b/noncore/apps/opie-console/mainwindow.cpp index bfd1c2e..27bcc09 100644 --- a/noncore/apps/opie-console/mainwindow.cpp +++ b/noncore/apps/opie-console/mainwindow.cpp | |||
@@ -287,52 +287,52 @@ void MainWindow::slotConfigure() { | |||
287 | void MainWindow::slotClose() { | 287 | void MainWindow::slotClose() { |
288 | qWarning("close"); | 288 | qWarning("close"); |
289 | if (!currentSession() ) | 289 | if (!currentSession() ) |
290 | return; | 290 | return; |
291 | 291 | ||
292 | tabWidget()->remove( currentSession() ); | 292 | tabWidget()->remove( currentSession() ); |
293 | /*it's autodelete */ | 293 | /*it's autodelete */ |
294 | m_sessions.remove( m_curSession ); | 294 | m_sessions.remove( m_curSession ); |
295 | m_curSession = m_sessions.first(); | 295 | m_curSession = m_sessions.first(); |
296 | tabWidget()->setCurrent( m_curSession ); | 296 | tabWidget()->setCurrent( m_curSession ); |
297 | } | 297 | } |
298 | 298 | ||
299 | /* | 299 | /* |
300 | * We will get the name | 300 | * We will get the name |
301 | * Then the profile | 301 | * Then the profile |
302 | * and then we will make a profile | 302 | * and then we will make a profile |
303 | */ | 303 | */ |
304 | void MainWindow::slotProfile( int id) { | 304 | void MainWindow::slotProfile( int id) { |
305 | Profile prof = manager()->profile( m_sessionsPop->text( id) ); | 305 | Profile prof = manager()->profile( m_sessionsPop->text( id) ); |
306 | create( prof ); | 306 | create( prof ); |
307 | } | 307 | } |
308 | void MainWindow::create( const Profile& prof ) { | 308 | void MainWindow::create( const Profile& prof ) { |
309 | Session *ses = manager()->fromProfile( prof, tabWidget() ); | 309 | Session *ses = manager()->fromProfile( prof, tabWidget() ); |
310 | 310 | ||
311 | m_sessions.append( ses ); | 311 | m_sessions.append( ses ); |
312 | tabWidget()->add( ses ); | 312 | tabWidget()->add( ses ); |
313 | m_curSession = ses; | 313 | m_curSession = ses; |
314 | 314 | ||
315 | } | 315 | } |
316 | 316 | ||
317 | void MainWindow::slotTransfer() | 317 | void MainWindow::slotTransfer() |
318 | { | 318 | { |
319 | if ( currentSession() ) { | 319 | // if ( currentSession() ) { |
320 | TransferDialog dlg(this); | 320 | TransferDialog dlg(this); |
321 | //dlg.showMaximized(); | 321 | dlg.showMaximized(); |
322 | dlg.exec(); | 322 | dlg.exec(); |
323 | } | 323 | // } |
324 | } | 324 | } |
325 | 325 | ||
326 | 326 | ||
327 | void MainWindow::slotOpenKeb(bool state) { | 327 | void MainWindow::slotOpenKeb(bool state) { |
328 | 328 | ||
329 | if (state) m_keyBar->show(); | 329 | if (state) m_keyBar->show(); |
330 | else m_keyBar->hide(); | 330 | else m_keyBar->hide(); |
331 | 331 | ||
332 | } | 332 | } |
333 | void MainWindow::slotSessionChanged( Session* ses ) { | 333 | void MainWindow::slotSessionChanged( Session* ses ) { |
334 | if ( ses ) { | 334 | if ( ses ) { |
335 | qWarning("changing %s", ses->name().latin1() ); | 335 | qWarning("changing %s", ses->name().latin1() ); |
336 | m_curSession = ses; | 336 | m_curSession = ses; |
337 | } | 337 | } |
338 | } | 338 | } |