View Issue Details

IDProjectCategoryView StatusLast Update
0013867ScribusGeneralpublic2016-03-31 08:15
ReporterKunda Assigned To 
PrioritynormalSeverityfeatureReproducibilityhave not tried
Status newResolutionopen 
Product Version1.5.2.svn 
Summary0013867: Autosave triggers a comment to STDOUT (visible if we invoked Scribus from CLI)
DescriptionFile (name.ext) successfully was Autosaved
TagsNo tags attached.
PatchNo

Relationships

child of 0013584 acknowledged Metabug: AutoSave & AutoRecover 

Activities

Kunda

2016-03-30 20:56

updater   ~0039573

Juraj, what do you think? :)

jurajF

2016-03-31 08:15

reporter   ~0039609

I made a patch for this, but please read a message in scribus-dev list.

jurajF

2016-03-31 08:15

reporter  

0001-Change-message-in-statusbar-for-autosaved-document.patch (884 bytes)   
From 9c1e61075d643576a620af437defa6856f89da22 Mon Sep 17 00:00:00 2001
From: Juraj Fedel <wtxnh-scribus@yahoo.com.au>
Date: Thu, 31 Mar 2016 08:28:28 +0200
Subject: [PATCH 1/2] Change message in statusbar for autosaved document

---
 scribus/scribusdoc.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scribus/scribusdoc.cpp b/scribus/scribusdoc.cpp
index 0991fa0..cbbfb47 100644
--- a/scribus/scribusdoc.cpp
+++ b/scribus/scribusdoc.cpp
@@ -16289,7 +16289,7 @@ void ScribusDoc::slotAutoSave()
 		FileLoader fl(fileName);
 		if (fl.saveFile(fileName, this, 0))
 		{
-			scMW()->statusBar()->showMessage( tr("File %1 autosaved").arg(base), 5000);
+			scMW()->statusBar()->showMessage( tr("Document %1 autosaved").arg(base), 5000);
 			if (autoSaveFiles.count() >= m_docPrefsData.docSetupPrefs.AutoSaveCount)
 			{
 				QFile f(autoSaveFiles.first());
-- 
2.1.4

jurajF

2016-03-31 08:15

reporter  

0002-Print-autosave-message-to-console.patch (800 bytes)   
From 01bbfabb224dd507c74c3691fd174ec9468bc83c Mon Sep 17 00:00:00 2001
From: Juraj Fedel <wtxnh-scribus@yahoo.com.au>
Date: Thu, 31 Mar 2016 08:31:29 +0200
Subject: [PATCH 2/2] Print autosave message to console

---
 scribus/scribusdoc.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/scribus/scribusdoc.cpp b/scribus/scribusdoc.cpp
index cbbfb47..7dec0aa 100644
--- a/scribus/scribusdoc.cpp
+++ b/scribus/scribusdoc.cpp
@@ -16290,6 +16290,7 @@ void ScribusDoc::slotAutoSave()
 		if (fl.saveFile(fileName, this, 0))
 		{
 			scMW()->statusBar()->showMessage( tr("Document %1 autosaved").arg(base), 5000);
+			qDebug() << tr("File (%1) autosaved").arg(fileName);
 			if (autoSaveFiles.count() >= m_docPrefsData.docSetupPrefs.AutoSaveCount)
 			{
 				QFile f(autoSaveFiles.first());
-- 
2.1.4

Issue History

Date Modified Username Field Change
2016-03-29 14:37 Kunda New Issue
2016-03-29 14:37 Kunda Relationship added child of 0013584
2016-03-29 14:38 Kunda Severity minor => feature
2016-03-30 20:56 Kunda Note Added: 0039573
2016-03-31 08:15 jurajF Note Added: 0039609
2016-03-31 08:15 jurajF File Added: 0001-Change-message-in-statusbar-for-autosaved-document.patch
2016-03-31 08:15 jurajF File Added: 0002-Print-autosave-message-to-console.patch