author | hash <hash> | 2002-10-18 17:50:05 (UTC) |
---|---|---|
committer | hash <hash> | 2002-10-18 17:50:05 (UTC) |
commit | 351d2f95d3f5beba26e5879659ddafb84b0f98f4 (patch) (side-by-side diff) | |
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 ) { m_connect->setEnabled( true ); m_disconnect->setEnabled( false ); m_terminate->setEnabled( true ); m_transfer->setEnabled( true ); m_recordScript->setEnabled( true ); m_saveScript->setEnabled( true ); m_runScript->setEnabled( true ); m_fullscreen->setEnabled( true ); m_closewindow->setEnabled( true ); // is io_layer wants direct connection, then autoconnect - if ( ( m_curSession->layer() )->supports()[0] = 1 ) { + if ( ( m_curSession->layer() )->supports()[0] == 1 ) { slotConnect(); } } void MainWindow::slotTransfer() { if ( currentSession() ) { TransferDialog dlg(currentSession()->widgetStack(), this); dlg.showMaximized(); //currentSession()->widgetStack()->add(dlg); dlg.exec(); } @@ -506,25 +506,25 @@ void MainWindow::slotFullscreen() { ( ( m_curSession->emulationHandler() )->cornerButton() )->show(); connect( ( m_curSession->emulationHandler() )->cornerButton(), SIGNAL( pressed() ), this, SLOT( slotFullscreen() ) ); } m_isFullscreen = !m_isFullscreen; } void MainWindow::slotKeyReceived(ushort u, ushort q, bool, bool pressed, bool) { - qWarning("unicode: %x, qkey: %x, %s", u, q, pressed ? "pressed" : "released"); + //qWarning("unicode: %x, qkey: %x, %s", u, q, pressed ? "pressed" : "released"); if ( m_curSession ) { QEvent::Type state; if (pressed) state = QEvent::KeyPress; else state = QEvent::KeyRelease; QKeyEvent ke(state, q, u, 0, QString(QChar(u))); // where should i send this event? doesnt work sending it here QApplication::sendEvent((QObject *)m_curSession->widget(), &ke); |