commit 91980ebfc51893abfbcbfc3b05748e25a5b0d366
Author: Benjamin Piwowarski <bpiwo...@lyx.org>
Date:   Fri Mar 21 11:06:06 2014 +0100

    Use qstr to convert string to a QString

diff --git a/src/frontends/qt4/GuiView.cpp b/src/frontends/qt4/GuiView.cpp
index 6a6c1e8..ce39a6e 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
 }
 

Reply via email to