Fixed #232: history pane doesn't retain cleared state after restarting goldendict

This commit is contained in:
Tvangeste 2013-03-05 13:23:50 +01:00
parent 06a8129fac
commit f0f087c04a
2 changed files with 2 additions and 1 deletions

View file

@ -153,6 +153,7 @@ bool History::save()
void History::clear()
{
items.clear();
dirty = true;
emit itemsChanged();
}

View file

@ -59,7 +59,7 @@ public:
/// Remove item with given index from list
void removeItem( int index )
{ items.removeAt( index ); emit itemsChanged(); }
{ items.removeAt( index ); dirty = true; emit itemsChanged(); }
/// Attempts saving history. Returns true if succeeded - false otherwise.
/// Since history isn't really that valuable, failures can be ignored.