Commit 0b57c493 authored by Eike Ziller's avatar Eike Ziller
Browse files

Throw out useless safety measure.



Change-Id: I57ef285fc4846638c35433d33980846c68631985
Reviewed-by: default avatarDavid Schulz <david.schulz@nokia.com>
Reviewed-by: default avatarEike Ziller <eike.ziller@nokia.com>
parent 37def2aa
......@@ -71,13 +71,12 @@ bool DirectoryFilter::restoreState(const QByteArray &state)
{
QMutexLocker locker(&m_lock);
QStringList dirEntries;
QString shortcut;
bool defaultFilter;
QDataStream in(state);
in >> m_name;
in >> dirEntries;
in >> m_directories;
in >> m_filters;
in >> shortcut;
in >> defaultFilter;
......@@ -86,15 +85,6 @@ bool DirectoryFilter::restoreState(const QByteArray &state)
setShortcutString(shortcut);
setIncludedByDefault(defaultFilter);
// ### TODO throw that out again:
// clear the list of directories of empty entries (which might at least happen at a format change)
m_directories.clear();
foreach (const QString &dir, dirEntries) {
if (dir.isEmpty())
continue;
m_directories.append(dir);
}
generateFileNames();
return true;
}
......
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