mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-30 13:24:05 +00:00
Fixed #232: history pane doesn't retain cleared state after restarting goldendict
This commit is contained in:
parent
06a8129fac
commit
f0f087c04a
|
@ -153,6 +153,7 @@ bool History::save()
|
|||
void History::clear()
|
||||
{
|
||||
items.clear();
|
||||
dirty = true;
|
||||
|
||||
emit itemsChanged();
|
||||
}
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue