Skip to content

Commit aa09b62

Browse files
committed
error message improvements
1 parent 8163de4 commit aa09b62

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/tools/save-load.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,10 @@ void openFile(QString filename){
3131
bgMenu->hide();
3232
} else {
3333
#endif
34-
pthread_t ptid;
34+
//pthread_t ptid;
3535
archive_target = filename;
36-
pthread_create(&ptid, NULL, &load_archive, NULL);
36+
load_archive(NULL);
37+
//pthread_create(&ptid, NULL, &load_archive, NULL);
3738
#ifdef QPRINTER
3839
}
3940
#endif

src/utils/Archive.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,11 +114,10 @@ class ArchiveStorage {
114114

115115
QImage image(reinterpret_cast<const uchar*>(loadedData.constData()), width, height, static_cast<QImage::Format>(format));
116116
if (image.isNull()) {
117-
puts("Image load fail");
117+
printf("Image load fail: %s\n", entryName);
118118
continue;
119119
}
120-
image = image.scaled(mainWidget->geometry().width(), mainWidget->geometry().height());
121-
values.insert(QString(entryName), image);
120+
values.insert(QString(entryName), image.copy());
122121
}
123122
}
124123
// Close the archive

0 commit comments

Comments
 (0)