src/mainWindow.cc

changeset 834
3e697ba996e8
parent 830
a741a0b9df49
child 840
d077dd19bf9a
--- a/src/mainWindow.cc	Mon Jul 07 15:38:45 2014 +0300
+++ b/src/mainWindow.cc	Mon Jul 07 18:52:10 2014 +0300
@@ -717,6 +717,7 @@
 bool MainWindow::save (LDDocumentPtr doc, bool saveAs)
 {
 	QString path = doc->fullPath();
+	int64 savesize;
 
 	if (saveAs || path.isEmpty())
 	{
@@ -738,12 +739,12 @@
 		}
 	}
 
-	if (doc->save (path))
+	if (doc->save (path, &savesize))
 	{
 		if (doc == getCurrentDocument())
 			updateTitle();
 
-		print ("Saved to %1.", path);
+		print ("Saved to %1 (%2)", path, prettyFileSize (savesize));
 
 		// Add it to recent files
 		addRecentFile (path);

mercurial