GUI: fix compilation with Qt < 5.4

This commit is contained in:
Moritz Bunkus 2015-10-03 21:45:34 +02:00
parent e96fbcd23a
commit 6502308256

View File

@ -884,7 +884,7 @@ Tab::handleDroppedSpecialFiles(QStringList const &fileNames) {
continue;
}
auto content = file.read(1024).toStdString();
auto content = std::string{ file.read(1024).data() };
if (boost::regex_search(content, simpleChaptersRE) || boost::regex_search(content, xmlChaptersRE)) {
Util::MessageBox::warning(this)
->title(QY("Adding chapter files"))