From: Benjamin Piwowarski Date: Fri, 21 Mar 2014 10:06:06 +0000 (+0100) Subject: Use qstr to convert string to a QString X-Git-Tag: 2.2.0alpha1~2066 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=91980ebfc51893abfbcbfc3b05748e25a5b0d366;p=features.git Use qstr to convert string to a QString --- diff --git a/src/frontends/qt4/GuiView.cpp b/src/frontends/qt4/GuiView.cpp index 6a6c1e8a87..ce39a6e0ef 100644 --- a/src/frontends/qt4/GuiView.cpp +++ b/src/frontends/qt4/GuiView.cpp @@ -1003,7 +1003,10 @@ void GuiView::updateWindowTitle(GuiWorkArea * wa) setWindowTitle(qt_("LyX: ") + wa->windowTitle()); setWindowIconText(wa->windowIconText()); #if (QT_VERSION >= 0x040400) - setWindowFilePath(wa->bufferView().buffer().absFileName().c_str()); + // Sets the path for the window: this is used by OSX to + // allow a context click on the title bar showing a menu + // with the path up to the file + setWindowFilePath(toqstr(wa->bufferView().buffer().absFileName().c_str())); #endif }