summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/opie-console/mainwindow.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/noncore/apps/opie-console/mainwindow.cpp b/noncore/apps/opie-console/mainwindow.cpp
index e3c3c38..936b1b2 100644
--- a/noncore/apps/opie-console/mainwindow.cpp
+++ b/noncore/apps/opie-console/mainwindow.cpp
@@ -559,69 +559,70 @@ void MainWindow::create( const Profile& prof ) {
559 tabWidget()->add( ses ); 559 tabWidget()->add( ses );
560 tabWidget()->repaint(); 560 tabWidget()->repaint();
561 m_curSession = ses; 561 m_curSession = ses;
562 562
563 // dicide if its a local term ( then no connction and no tranfer), maybe make a wrapper method out of it 563 // dicide if its a local term ( then no connction and no tranfer), maybe make a wrapper method out of it
564 m_connect->setEnabled( true ); 564 m_connect->setEnabled( true );
565 m_disconnect->setEnabled( false ); 565 m_disconnect->setEnabled( false );
566 m_terminate->setEnabled( true ); 566 m_terminate->setEnabled( true );
567 m_fullscreen->setEnabled( true ); 567 m_fullscreen->setEnabled( true );
568 m_closewindow->setEnabled( true ); 568 m_closewindow->setEnabled( true );
569 m_transfer->setEnabled( false ); 569 m_transfer->setEnabled( false );
570 m_recordScript->setEnabled( false ); 570 m_recordScript->setEnabled( false );
571 m_saveScript->setEnabled( false ); 571 m_saveScript->setEnabled( false );
572 m_scripts->setItemEnabled(m_runScript_id, false); 572 m_scripts->setItemEnabled(m_runScript_id, false);
573 573
574 // is io_layer wants direct connection, then autoconnect 574 // is io_layer wants direct connection, then autoconnect
575 //if ( ( m_curSession->layer() )->supports()[0] == 1 ) { 575 //if ( ( m_curSession->layer() )->supports()[0] == 1 ) {
576 if (prof.autoConnect()) { 576 if (prof.autoConnect()) {
577 slotConnect(); 577 slotConnect();
578 } 578 }
579 579
580 580
581 QWidget *w = currentSession()->widget(); 581 QWidget *w = currentSession()->widget();
582 if(w) w->setFocus(); 582 if(w) w->setFocus();
583 583
584 m_kb->load(currentSession()->profile()); 584 m_kb->load(currentSession()->profile());
585} 585}
586 586
587void MainWindow::slotTransfer() 587void MainWindow::slotTransfer()
588{ 588{
589 if ( currentSession() ) { 589 if ( currentSession() ) {
590 Session *mysession = currentSession(); 590 Session *mysession = currentSession();
591 TransferDialog dlg(mysession->widgetStack(), this); 591 TransferDialog dlg(/*mysession->widgetStack()*/this, this);
592 mysession->setTransferDialog(&dlg); 592 mysession->setTransferDialog(&dlg);
593 dlg.show(); 593 //dlg.reparent(mysession->widgetStack(), QPoint(0, 0));
594 //dlg.showMaximized(); 594 //dlg.showMaximized();
595 //currentSession()->widgetStack()->add(dlg); 595 currentSession()->widgetStack()->addWidget(&dlg, -1);
596 dlg.show();
596 //dlg.exec(); 597 //dlg.exec();
597 while(dlg.isRunning()) qApp->processEvents(); 598 while(dlg.isRunning()) qApp->processEvents();
598 mysession->setTransferDialog(0l); 599 mysession->setTransferDialog(0l);
599 } 600 }
600} 601}
601 602
602 603
603void MainWindow::slotOpenKeb(bool state) { 604void MainWindow::slotOpenKeb(bool state) {
604 605
605 if (state) m_keyBar->show(); 606 if (state) m_keyBar->show();
606 else m_keyBar->hide(); 607 else m_keyBar->hide();
607 608
608} 609}
609 610
610 611
611void MainWindow::slotOpenButtons( bool state ) { 612void MainWindow::slotOpenButtons( bool state ) {
612 613
613 if ( state ) { 614 if ( state ) {
614 m_buttonBar->show(); 615 m_buttonBar->show();
615 } else { 616 } else {
616 m_buttonBar->hide(); 617 m_buttonBar->hide();
617 } 618 }
618} 619}
619 620
620 621
621 622
622void MainWindow::slotSessionChanged( Session* ses ) { 623void MainWindow::slotSessionChanged( Session* ses ) {
623 qWarning("changed!"); 624 qWarning("changed!");
624 625
625 if(m_curSession) 626 if(m_curSession)
626 if(m_curSession->transferDialog()) m_curSession->transferDialog()->hide(); 627 if(m_curSession->transferDialog()) m_curSession->transferDialog()->hide();
627 if(ses) 628 if(ses)