author | hash <hash> | 2002-10-18 17:50:05 (UTC) |
---|---|---|
committer | hash <hash> | 2002-10-18 17:50:05 (UTC) |
commit | 351d2f95d3f5beba26e5879659ddafb84b0f98f4 (patch) (unidiff) | |
tree | f48d66f766ca02950d6295ea00d912d40081c43d | |
parent | addfc9900cbf3da2cdbfa54ea849bc7f7fb1b296 (diff) | |
download | opie-351d2f95d3f5beba26e5879659ddafb84b0f98f4.zip opie-351d2f95d3f5beba26e5879659ddafb84b0f98f4.tar.gz opie-351d2f95d3f5beba26e5879659ddafb84b0f98f4.tar.bz2 |
always autoconnect bug fixed
-rw-r--r-- | noncore/apps/opie-console/mainwindow.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/noncore/apps/opie-console/mainwindow.cpp b/noncore/apps/opie-console/mainwindow.cpp index 27407d9..cf1fbc3 100644 --- a/noncore/apps/opie-console/mainwindow.cpp +++ b/noncore/apps/opie-console/mainwindow.cpp | |||
@@ -423,25 +423,25 @@ void MainWindow::create( const Profile& prof ) { | |||
423 | m_connect->setEnabled( true ); | 423 | m_connect->setEnabled( true ); |
424 | m_disconnect->setEnabled( false ); | 424 | m_disconnect->setEnabled( false ); |
425 | m_terminate->setEnabled( true ); | 425 | m_terminate->setEnabled( true ); |
426 | m_transfer->setEnabled( true ); | 426 | m_transfer->setEnabled( true ); |
427 | m_recordScript->setEnabled( true ); | 427 | m_recordScript->setEnabled( true ); |
428 | m_saveScript->setEnabled( true ); | 428 | m_saveScript->setEnabled( true ); |
429 | m_runScript->setEnabled( true ); | 429 | m_runScript->setEnabled( true ); |
430 | m_fullscreen->setEnabled( true ); | 430 | m_fullscreen->setEnabled( true ); |
431 | m_closewindow->setEnabled( true ); | 431 | m_closewindow->setEnabled( true ); |
432 | 432 | ||
433 | 433 | ||
434 | // is io_layer wants direct connection, then autoconnect | 434 | // is io_layer wants direct connection, then autoconnect |
435 | if ( ( m_curSession->layer() )->supports()[0] = 1 ) { | 435 | if ( ( m_curSession->layer() )->supports()[0] == 1 ) { |
436 | slotConnect(); | 436 | slotConnect(); |
437 | } | 437 | } |
438 | } | 438 | } |
439 | 439 | ||
440 | void MainWindow::slotTransfer() | 440 | void MainWindow::slotTransfer() |
441 | { | 441 | { |
442 | if ( currentSession() ) { | 442 | if ( currentSession() ) { |
443 | TransferDialog dlg(currentSession()->widgetStack(), this); | 443 | TransferDialog dlg(currentSession()->widgetStack(), this); |
444 | dlg.showMaximized(); | 444 | dlg.showMaximized(); |
445 | //currentSession()->widgetStack()->add(dlg); | 445 | //currentSession()->widgetStack()->add(dlg); |
446 | dlg.exec(); | 446 | dlg.exec(); |
447 | } | 447 | } |
@@ -506,25 +506,25 @@ void MainWindow::slotFullscreen() { | |||
506 | 506 | ||
507 | ( ( m_curSession->emulationHandler() )->cornerButton() )->show(); | 507 | ( ( m_curSession->emulationHandler() )->cornerButton() )->show(); |
508 | 508 | ||
509 | connect( ( m_curSession->emulationHandler() )->cornerButton(), SIGNAL( pressed() ), this, SLOT( slotFullscreen() ) ); | 509 | connect( ( m_curSession->emulationHandler() )->cornerButton(), SIGNAL( pressed() ), this, SLOT( slotFullscreen() ) ); |
510 | } | 510 | } |
511 | 511 | ||
512 | m_isFullscreen = !m_isFullscreen; | 512 | m_isFullscreen = !m_isFullscreen; |
513 | } | 513 | } |
514 | 514 | ||
515 | 515 | ||
516 | void MainWindow::slotKeyReceived(ushort u, ushort q, bool, bool pressed, bool) { | 516 | void MainWindow::slotKeyReceived(ushort u, ushort q, bool, bool pressed, bool) { |
517 | 517 | ||
518 | qWarning("unicode: %x, qkey: %x, %s", u, q, pressed ? "pressed" : "released"); | 518 | //qWarning("unicode: %x, qkey: %x, %s", u, q, pressed ? "pressed" : "released"); |
519 | 519 | ||
520 | if ( m_curSession ) { | 520 | if ( m_curSession ) { |
521 | 521 | ||
522 | QEvent::Type state; | 522 | QEvent::Type state; |
523 | 523 | ||
524 | if (pressed) state = QEvent::KeyPress; | 524 | if (pressed) state = QEvent::KeyPress; |
525 | else state = QEvent::KeyRelease; | 525 | else state = QEvent::KeyRelease; |
526 | 526 | ||
527 | QKeyEvent ke(state, q, u, 0, QString(QChar(u))); | 527 | QKeyEvent ke(state, q, u, 0, QString(QChar(u))); |
528 | 528 | ||
529 | // where should i send this event? doesnt work sending it here | 529 | // where should i send this event? doesnt work sending it here |
530 | QApplication::sendEvent((QObject *)m_curSession->widget(), &ke); | 530 | QApplication::sendEvent((QObject *)m_curSession->widget(), &ke); |