# HG changeset patch
# User Yuki KODAMA <[email protected]>
# Date 1244865073 -32400
# Node ID 7784b868358604ceccec2cfd66313fb2d7092913
# Parent  feb1ace7e7247d6ec074e3fb50913699adcb40fc
shelve: change to appropriate message

diff --git a/hggtk/thgshelve.py b/hggtk/thgshelve.py
--- a/hggtk/thgshelve.py
+++ b/hggtk/thgshelve.py
@@ -128,6 +128,11 @@
             self.unshelve_btn.set_sensitive(False)

     def shelve_selected(self, file=None):
+        if len(self.filemodel) < 1:
+            gdialog.Prompt(_('Shelve'),
+                    _('No changes to shelve'), self).run()
+            return
+
         wfiles = file and [file] or self.relevant_files('MAR')
         if not wfiles:
             gdialog.Prompt(_('Shelve'),

------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Tortoisehg-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tortoisehg-develop

Reply via email to