Do not load images that were already released
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
#ifndef LOADRUNABLE_H
|
||||
#define LOADRUNABLE_H
|
||||
|
||||
#include <QRunnable>
|
||||
#include <QString>
|
||||
|
||||
class Image;
|
||||
|
||||
class LoadRunable : public QRunnable
|
||||
{
|
||||
QString m_file;
|
||||
Image *m_receiver;
|
||||
public:
|
||||
LoadRunable(const QString &file, Image *receiver);
|
||||
void run();
|
||||
};
|
||||
|
||||
#endif // LOADRUNABLE_H
|
||||
Reference in New Issue
Block a user