Use the correct character encoding for exceptions coming from libtorrent.

This commit is contained in:
sledgehammer999
2014-10-18 17:22:50 +03:00
parent 89ae72d5c4
commit 9b71e4ffc9
5 changed files with 10 additions and 9 deletions

View File

@@ -42,6 +42,7 @@
#include "torrentcreatorthread.h"
#include "fs_utils.h"
#include "misc.h"
#include <boost/bind.hpp>
#include <iostream>
@@ -136,6 +137,6 @@ void TorrentCreatorThread::run() {
emit updateProgress(100);
emit creationSuccess(save_path, parent_path);
} catch (std::exception& e) {
emit creationFailure(QString::fromLocal8Bit(e.what()));
emit creationFailure(misc::toQStringU(e.what()));
}
}