}
/* set the value for the currently active console */
int stackindex = tabWidget->indexOf(nextPage);
+ if (!nextPage->isOnceDocked()) {
+ nextPage->dockPage();
+ }
/* Is this page currently on the stack or is it undocked */
if (stackindex >= 0) {
}
}
}
- if (!found)
+ if (!found) {
new DirStat();
+ }
}
void MainWin::restoreButtonClicked()
QString cmdStr = lineEdit->text(); /* Get the text */
lineEdit->clear(); /* clear the lineEdit box */
if (m_currentConsole->is_connected()) {
- if (m_currentConsole->currentDirComm(conn)) {
+ if (m_currentConsole->findDirComm(conn)) {
m_currentConsole->consoleCommand(cmdStr, conn);
} else {
/* Use consoleCommand to allow typing anything */