mirror of
https://github.com/YACReader/yacreader
synced 2025-07-22 06:54:39 -04:00
removed some ugly defines
This commit is contained in:
@ -6,7 +6,6 @@
|
||||
|
||||
#include <QMessageBox>
|
||||
#include <QList>
|
||||
#define NUM_BOOKMARKS 250
|
||||
|
||||
Bookmarks::Bookmarks()
|
||||
:lastPageIndex(0)
|
||||
@ -138,8 +137,8 @@ void BookmarksList::save()
|
||||
QFile f(QCoreApplication::applicationDirPath()+"/bookmarks.yacr");
|
||||
f.open(QIODevice::WriteOnly);
|
||||
QDataStream dataS(&f);
|
||||
if(list.count()>NUM_BOOKMARKS)
|
||||
deleteOldest(list.count()-NUM_BOOKMARKS);
|
||||
if(list.count()>numMaxBookmarks)
|
||||
deleteOldest(list.count()-numMaxBookmarks);
|
||||
dataS << list;
|
||||
f.close();
|
||||
}
|
||||
|
Reference in New Issue
Block a user