~dpm/qreator/snap

« back to all changes in this revision

Viewing changes to qreator/qrcodes/QRCodeURLGtk.py

  • Committer: Stefan Schwarzburg
  • Date: 2013-05-09 07:18:19 UTC
  • mto: This revision was merged to the branch mainline in revision 159.
  • Revision ID: stefan.schwarzburg@gmail.com-20130509071819-fs7rzjb7cqu3zote
fixed bug #1173709 by trail and error

Show diffs side-by-side

added added

removed removed

Lines of Context:
179
179
                _("A network connection error occured: {0}".format(e)))
180
180
            self.messagedialog.show()
181
181
            GObject.idle_add(self._reset_shortener)
182
 
            return()
 
182
            return
183
183
        except Exception as e:
184
184
            # TRANSLATORS: leave '{0}' as it is, it will be replaced by the
185
185
            # exception's error message
187
187
                _("An error occured while trying to shorten the URL: {0}".format(e)))   # pylint: disable=E0501
188
188
            self.messagedialog.show()
189
189
            GObject.idle_add(self._reset_shortener)
190
 
            return()
 
190
            return
191
191
        self.entry.set_tooltip_text(self.long_address)
192
192
        self.entry.set_has_tooltip(True)
193
193
        self.entry.set_text(self.short_address)