]> git.lyx.org Git - features.git/commitdiff
Use qstr to convert string to a QString
authorBenjamin Piwowarski <bpiwowar@lyx.org>
Fri, 21 Mar 2014 10:06:06 +0000 (11:06 +0100)
committerRichard Heck <rgheck@lyx.org>
Mon, 21 Apr 2014 15:51:56 +0000 (11:51 -0400)
src/frontends/qt4/GuiView.cpp

index 6a6c1e8a87c73fef4daf3e38d16b5954fb2fe977..ce39a6e0eff43a8a38edde7bef639fa28a8e737c 100644 (file)
@@ -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
 }