}
continue;
case BNET_START_SELECT:
+ notify(false);
if (mainWin->m_commDebug) Pmsg1(000, "conn %i START SELECT\n", m_conn);
- new selectDialog(m_console);
+ new selectDialog(m_console, m_conn);
break;
case BNET_YESNO:
if (mainWin->m_commDebug) Pmsg1(000, "conn %i YESNO\n", m_conn);
/*
* Read the items for the selection
*/
-selectDialog::selectDialog(Console *console)
+selectDialog::selectDialog(Console *console, int conn)
{
+ m_conn = conn;
QDateTime dt;
int stat;
QListWidgetItem *item;
setupUi(this);
connect(listBox, SIGNAL(currentRowChanged(int)), this, SLOT(index_change(int)));
setAttribute(Qt::WA_DeleteOnClose);
- m_conn = m_console->notifyOff();
m_console->read(m_conn); /* get title */
labelWidget->setText(m_console->msg(m_conn));
while ((stat=m_console->read(m_conn)) > 0) {
this->hide();
bsnprintf(cmd, sizeof(cmd), "%d", m_index+1);
- m_console->write_dir(cmd);
+ m_console->write_dir(m_conn, cmd);
m_console->displayToPrompt(m_conn);
this->close();
mainWin->resetFocus();
m_console->displayToPrompt(m_conn);
-
+ m_console->notify(m_conn, true);
}
this->close();
mainWin->resetFocus();
m_console->beginNewCommand(m_conn);
+ m_console->notify(m_conn, true);
}
/*