}
/* set the value for the currently active console */
int stackindex = tabWidget->indexOf(nextPage);
- if (!nextPage->isOnceDocked()) {
- nextPage->dockPage();
- }
+ nextPage->firstUseDock();
/* Is this page currently on the stack or is it undocked */
if (stackindex >= 0) {
m_docked = false;
m_onceDocked = false;
m_closeable = true;
+ m_dockOnFirstUse = true;
+}
+
+/* first Use Dock */
+void Pages::firstUseDock()
+{
+ if (!m_onceDocked && m_dockOnFirstUse) {
+ dockPage();
+ }
}
/*
QString &name() { return m_name; };
void getVolumeList(QStringList &);
void getStatusList(QStringList &);
+ void firstUseDock();
public slots:
/* closeEvent is a virtual function inherited from QWidget */
bool m_closeable;
bool m_docked;
bool m_onceDocked;
+ bool m_dockOnFirstUse;
Console *m_console;
QString m_name;
};
runPage::runPage(const QString &defJob)
{
+ m_dockOnFirstUse = false;
init();
if (defJob != "")
jobCombo->setCurrentIndex(jobCombo->findText(defJob, Qt::MatchExactly));
const QString &pool, const QString &storage,
const QString &client, const QString &fileset)
{
+ m_dockOnFirstUse = false;
init();
jobCombo->setCurrentIndex(jobCombo->findText(defJob, Qt::MatchExactly));
job_name_change(0);