#include "core/events/NewFunctionEvent.hxx"
#include "core/events/ChangeCommentEvent.hxx"
-#include "gui/qt.hxx"
+#include "qt.hxx"
#include <quazip/quazip.h>
#include <quazip/quazipfile.h>
QuaZipFile file(&zip);
QuaZipFileInfo info;
- zip.open(QuaZip::mdUnzip);
+ if (!zip.open(QuaZip::mdUnzip)) {
+ LOG4CXX_ERROR(logger, "Failed to open archive " << filename);
+ return;
+ }
tmpfile.reset(new QTemporaryFile());
{
blocks.insert(std::make_pair(bl->getStartAddress(), bl));
}
NewFunctionEvent event(fun->getStartAddress(), fun);
- dispatch(&event);
+ Q_EMIT newFunctionEvent(&event);
}
void InformationManager::finishBasicBlock(BasicBlock*) {
void InformationManager::finishComment(Comment* c) {
LOG4CXX_DEBUG(logger, "Finishing comment " << c->getAddress());
ChangeCommentEvent event(c->getAddress(), c->getLocation(), c);
- dispatch(&event);
+ Q_EMIT changeCommentEvent(&event);
}
void InformationManager::deleteFunction(Function* f) {