Scratch doesn't save a backup of the file on state restoration

Bug #1121462 reported by Sergey "Shnatsel" Davidoff
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Scratch
Fix Released
Low
Julien Spautz

Bug Description

When opening Scratch with some saved tabs, it doesn't save/update the backup file for the file you open. This leads to "Revert" button being always insensitive.

ProblemType: Bug
DistroRelease: elementary OS 0.2
Package: scratch-text-editor 1.1.1+r984-0+pkg39~precise1 [origin: LP-PPA-elementary-os-daily]
ProcVersionSignature: Ubuntu 3.5.0-19.30~precise1-generic 3.5.7
Uname: Linux 3.5.0-19-generic x86_64
ApportVersion: 2.0.1-0ubuntu17.1+elementary3~precise1
Architecture: amd64
CrashDB: scratch_text_editor
Date: Mon Feb 11 01:45:47 2013
ExecutablePath: /usr/bin/scratch-text-editor
GsettingsChanges:

InstallationMedia: elementary OS 0.2 "Luna" - Build amd64 LIVE Binary 20121001-15:16
MarkForUpload: True
ProcEnviron:
 PATH=(custom, no user)
 LANG=ru_RU.UTF-8
 SHELL=/bin/bash
SourcePackage: scratch-text-editor
UpgradeStatus: No upgrade log present (probably fresh install)

Related branches

Revision history for this message
Sergey "Shnatsel" Davidoff (shnatsel) wrote :
Changed in scratch:
status: New → Confirmed
description: updated
Revision history for this message
Julien Spautz (julien-spautz) wrote :

I'm not really familiar with the code, but it seems that in Scratch.vala in the function "open_document" it should call "document.make_backup ();" like in the "open_file" function.

Changed in scratch:
assignee: nobody → Julien Spautz (julien-spautz)
status: Confirmed → In Progress
Changed in scratch:
importance: Undecided → Low
status: In Progress → Fix Committed
Changed in scratch:
milestone: none → 1.2
Cody Garver (codygarver)
Changed in scratch:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.