From b2c013156dd8e7e6a25f17a8a990e1c220aeeabb Mon Sep 17 00:00:00 2001
From: Reinier van der Walle <walle@astron.nl>
Date: Thu, 24 Mar 2016 11:10:50 +0000
Subject: [PATCH] added brackets to check fn_ bn_

---
 tools/oneclick/gui/unb_gui_commands.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tools/oneclick/gui/unb_gui_commands.py b/tools/oneclick/gui/unb_gui_commands.py
index b8904e40d0..6d03441bcc 100644
--- a/tools/oneclick/gui/unb_gui_commands.py
+++ b/tools/oneclick/gui/unb_gui_commands.py
@@ -367,11 +367,11 @@ class Commands:
     # check rbf file name for 'bn_'/'fn_'
     def check_rbf(self, rbf_path):
         rbf_name = rbf_path.split('/')[-1]
-        if ('bn_' in rbf_name) and not (self.fn_nrs.get == ''):
+        if ('bn_' in rbf_name) and not (self.fn_nrs.get() == ''):
             tkMessageBox.showwarning("Warning","You can't flash front nodes with a rbf for backnodes")            
             return False
             
-        elif ('fn_' in rbf_name) and not (self.bn_nrs.get == ''):
+        elif ('fn_' in rbf_name) and not (self.bn_nrs.get() == ''):
             tkMessageBox.showwarning("Warning","You can't flash back nodes with a rbf for frontnodes")            
             return False
 
-- 
GitLab