Commit eb59fcb5 authored by Michael Carpenter's avatar Michael Carpenter

Fix for saving and reloading QuickView column count

parent 4034178a
......@@ -106,6 +106,7 @@ void UASQuickView::saveSettings()
void UASQuickView::loadSettings()
{
QSettings settings;
m_columnCount = settings.value("UAS_QUICK_VIEW_COLUMNS",1).toInt();
int size = settings.beginReadArray("UAS_QUICK_VIEW_ITEMS");
for (int i=0;i<size;i++)
{
......@@ -118,7 +119,6 @@ void UASQuickView::loadSettings()
}
}
settings.endArray();
m_columnCount = settings.value("UAS_QUICK_VIEW_COLUMNS",1).toInt();
sortItems(m_columnCount);
}
......
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