mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-09 15:54:47 -07:00
Reimplemented PictureLoader as a singleton
* Removed remaining picture handling from card database and cardinfo * removed the “noCard object” hack
This commit is contained in:
parent
8125358052
commit
f6c7f3355f
20 changed files with 654 additions and 704 deletions
|
|
@ -1,6 +1,8 @@
|
|||
#include "window_sets.h"
|
||||
#include "setsmodel.h"
|
||||
#include "pictureloader.h"
|
||||
#include "main.h"
|
||||
|
||||
#include <QTreeView>
|
||||
#include <QGridLayout>
|
||||
#include <QHeaderView>
|
||||
|
|
@ -123,7 +125,7 @@ WndSets::~WndSets()
|
|||
void WndSets::actSave()
|
||||
{
|
||||
model->save(db);
|
||||
db->clearPixmapCache();
|
||||
PictureLoader::clearPixmapCache();
|
||||
QMessageBox::information(this, tr("Success"), tr("The sets database has been saved successfully."));
|
||||
close();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue