app->setOverrideCursor(QCursor(Qt::WaitCursor));
m_isClosing = false;
m_waitState = false;
+ m_doConnect = false;
m_dtformat = "yyyy-MM-dd HH:mm:ss";
mainWin = this;
setupUi(this); /* Setup UI defined by main.ui (designer) */
foreach(Console *console, m_consoleHash)
console->connect_dir();
m_currentConsole = (Console*)getFromHash(m_firstItem);
- m_currentConsole->setCurrent();
- QTimer::singleShot(2000, this, SLOT(popLists()));
+ QTimer::singleShot(750, this, SLOT(popLists()));
if (m_miscDebug) {
QString directoryResourceName;
m_currentConsole->getDirResName(directoryResourceName);
{
foreach(Console *console, m_consoleHash)
console->populateLists(true);
+ app->restoreOverrideCursor();
+ m_currentConsole->setCurrent();
+ m_doConnect = true;
connectConsoleSignals();
connectSignals();
- app->restoreOverrideCursor();
}
void MainWin::createPages()
app->restoreOverrideCursor();
if (m_waitTreeItem != treeWidget->currentItem())
treeWidget->setCurrentItem(m_waitTreeItem);
- connectSignals();
- connectConsoleSignals();
+ if (m_doConnect) {
+ connectSignals();
+ connectConsoleSignals();
+ }
}
void MainWin::connectConsoleSignals()