From 6502308256f385bc6439f6c2079908c1bdff324b Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Sat, 3 Oct 2015 21:45:34 +0200 Subject: [PATCH] GUI: fix compilation with Qt < 5.4 --- src/mkvtoolnix-gui/merge/input.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mkvtoolnix-gui/merge/input.cpp b/src/mkvtoolnix-gui/merge/input.cpp index 2913d3c8c..a3ae01be1 100644 --- a/src/mkvtoolnix-gui/merge/input.cpp +++ b/src/mkvtoolnix-gui/merge/input.cpp @@ -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"))