Commit ee67f384 authored by Jean-Baptiste Mardelle's avatar Jean-Baptiste Mardelle
Browse files

disable delete tmp folder button if no folder exists

parent a1d12b36
......@@ -497,6 +497,7 @@ void TemporaryData::updateGlobalInfo()
m_globalDirectories.clear();
m_processingDirectory.clear();
m_globalDirectories = m_globalDir.entryList(QDir::Dirs | QDir::NoDotAndDotDot);
m_globalDelete->setEnabled(!m_globalDirectories.isEmpty());
processglobalDirectories();
m_listWidget->blockSignals(false);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment