src/toolsets/viewtoolset.cpp

changeset 1332
1fffb24d4ffe
parent 1326
69a90bd2dba2
child 1369
1e2391b78d17
--- a/src/toolsets/viewtoolset.cpp	Sat Mar 24 13:42:34 2018 +0200
+++ b/src/toolsets/viewtoolset.cpp	Sat Mar 24 13:48:50 2018 +0200
@@ -116,7 +116,7 @@
 	const char* imageFormats = "PNG images (*.png);;JPG images (*.jpg);;BMP images (*.bmp);;"
 	    "PPM images (*.ppm);;X11 Bitmaps (*.xbm);;X11 Pixmaps (*.xpm);;All Files (*.*)";
 	QImage image = m_window->renderer()->screenCapture();
-	QString root = Basename (currentDocument()->name());
+	QString root = QFileInfo {currentDocument()->name()}.fileName();
 
 	if (root.right (4) == ".dat")
 		root.chop (4);

mercurial