URI: 
       ttest if a donation address exists - electrum - Electrum Bitcoin wallet
  HTML git clone https://git.parazyd.org/electrum
   DIR Log
   DIR Files
   DIR Refs
   DIR Submodules
       ---
   DIR commit 85a411d5cfce3a7ebb3cf1a801dea76d2c8e719a
   DIR parent cefc11cc4e8751e925c97578d9a82be3b0973e59
  HTML Author: ThomasV <thomasv@electrum.org>
       Date:   Sat,  4 Jun 2016 19:38:38 +0200
       
       ttest if a donation address exists
       
       Diffstat:
         M gui/qt/main_window.py               |       6 ++++--
       
       1 file changed, 4 insertions(+), 2 deletions(-)
       ---
   DIR diff --git a/gui/qt/main_window.py b/gui/qt/main_window.py
       t@@ -445,10 +445,12 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, PrintError):
                self.setMenuBar(menubar)
        
            def donate_to_server(self):
       -        if self.network.is_connected():
       -            d = self.network.get_donation_address()
       +        d = self.network.get_donation_address()
       +        if d:
                    host = self.network.get_parameters()[0]
                    self.pay_to_URI('bitcoin:%s?message=donation for %s'%(d, host))
       +        else:
       +            self.show_error(_('No donation address for this server'))
        
            def show_about(self):
                QMessageBox.about(self, "Electrum",