bool prev_enabled = false;
if (m_notifier) {
prev_enabled = m_notifier->isEnabled();
- m_notifier->setEnabled(enable);
+ if (prev_enabled != enable) {
+ m_notifier->setEnabled(enable);
+ }
if (mainWin->m_connDebug) {
if (prev_enabled && !enable)
Pmsg2(000, "m_notifier Disabling notifier: %i %s\n", m_conn, m_console->m_dir->name());
void JobPlot::setupControls()
{
QStringList graphType = QStringList() << /* tr("Fitted") <<*/ tr("Sticks")
- << tr("Lines") << tr("Steps") << tr("None");
+ << tr("Lines") << tr("Steps") << tr("None");
controls->plotTypeCombo->addItems(graphType);
fillSymbolCombo(controls->fileSymbolTypeCombo);
int volumeIndex = controls->volumeComboBox->currentIndex();
if ((volumeIndex != -1) && (controls->volumeComboBox->itemText(volumeIndex) != tr("Any"))) {
query += " LEFT OUTER JOIN JobMedia ON (JobMedia.JobId=Job.JobId)"
- " LEFT OUTER JOIN Media ON (JobMedia.MediaId=Media.MediaId)";
+ " LEFT OUTER JOIN Media ON (JobMedia.MediaId=Media.MediaId)";
conditions.append("Media.VolumeName='" + controls->volumeComboBox->itemText(volumeIndex) + "'");
}
comboCond(conditions, controls->fileSetComboBox, "FileSet.FileSet");
{
QSettings settings(m_console->m_dir->name(), "bat");
settings.beginGroup("JobPlot");
- if (settings.contains("m_splitterSizes")) { m_splitter->restoreState(settings.value("m_splitterSizes").toByteArray()); }
+ if (settings.contains("m_splitterSizes")) {
+ m_splitter->restoreState(settings.value("m_splitterSizes").toByteArray());
+ }
settings.endGroup();
}
fi
if test -d ../win32/release32; then
cp -f debug/bat.exe ../win32/release32
+ cp -f ${DEPKGS}/depkgs-mingw32/lib/qt/QtGui4.dll ../win32/release32
+ cp -f ${DEPKGS}/depkgs-mingw32/lib/qt/QtCore4.dll ../win32/release32
fi
{
QSettings settings(m_console->m_dir->name(), "bat");
settings.beginGroup("RestorePage");
- m_splitText = "splitterSizes_2";
settings.setValue(m_splitText, splitter->saveState());
settings.endGroup();
}
*/
void restorePage::readSettings()
{
+ m_splitText = "splitterSizes_2";
QSettings settings(m_console->m_dir->name(), "bat");
settings.beginGroup("RestorePage");
- if (settings.contains(m_splitText)) { splitter->restoreState(settings.value(m_splitText).toByteArray()); }
+ if (settings.contains(m_splitText)) {
+ splitter->restoreState(settings.value(m_splitText).toByteArray());
+ }
settings.endGroup();
}
if (field == "OK")
p_tableitem->setBackground(Qt::green);
else
- p_tableitem->setBackground(Qt::red);
- }
+ p_tableitem->setBackground(Qt::red);
+ }
terminatedTable->setItem(results.size() - row - 1, column, p_tableitem);
column += 1;
}