URI: 
       tstrip spaces from txid dialog output - electrum - Electrum Bitcoin wallet
  HTML git clone https://git.parazyd.org/electrum
   DIR Log
   DIR Files
   DIR Refs
   DIR Submodules
       ---
   DIR commit 3e4d332a4c8208f20d0051e827ee7a94988772b4
   DIR parent 6c69849be9383a3d7670fa18e8644953d60ba6f4
  HTML Author: ThomasV <thomasv@electrum.org>
       Date:   Wed,  2 Sep 2015 09:15:34 +0200
       
       strip spaces from txid dialog output
       
       Diffstat:
         M gui/qt/main_window.py               |       7 +++----
       
       1 file changed, 3 insertions(+), 4 deletions(-)
       ---
   DIR diff --git a/gui/qt/main_window.py b/gui/qt/main_window.py
       t@@ -2349,15 +2349,13 @@ class ElectrumWindow(QMainWindow):
                        file_content = f.read()
                except (ValueError, IOError, os.error), reason:
                    QMessageBox.critical(None, _("Unable to read file or no transaction found"), _("Electrum was unable to open your transaction file") + "\n" + str(reason))
       -
                return self.tx_from_text(file_content)
        
       -
            def do_process_from_text(self):
                text = text_dialog(self, _('Input raw transaction'), _("Transaction:"), _("Load transaction"))
                if not text:
                    return
       -        tx = self.tx_from_text(text)
       +        tx = self.tx_from_text()
                if tx:
                    self.show_transaction(tx)
        
       t@@ -2370,8 +2368,9 @@ class ElectrumWindow(QMainWindow):
                from electrum import transaction
                txid, ok = QInputDialog.getText(self, _('Lookup transaction'), _('Transaction ID') + ':')
                if ok and txid:
       +            txid = str(txid).strip()
                    try:
       -                r = self.network.synchronous_get(('blockchain.transaction.get',[str(txid)]))
       +                r = self.network.synchronous_get(('blockchain.transaction.get',[txid]))
                    except BaseException as e:
                        self.show_message(str(e))
                        return