From 91980ebfc51893abfbcbfc3b05748e25a5b0d366 Mon Sep 17 00:00:00 2001 From: Benjamin Piwowarski Date: Fri, 21 Mar 2014 11:06:06 +0100 Subject: [PATCH] Use qstr to convert string to a QString --- src/frontends/qt4/GuiView.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 } -- 2.39.2