Changeset 2954

Show
Ignore:
Timestamp:
06/04/08 00:26:34 (5 years ago)
Author:
boltrix
Message:

Fixed this issue. It was related to this snippet of code:

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/umitGUI/ScanNotebook.py

    r2932 r2954  
    442442        if target == '': 
    443443            target = self.empty_target 
    444          
     444 
    445445        try: 
    446446            cmd_profile = CommandProfile() 
     
    449449             
    450450            # scan button must be enable if -iR or -iL options are passed 
    451             if command.find('-iR') != -1 or command.find('-iL') != -1 \ 
    452                     or target != self.empty_target: 
     451            if command.find('-iR') != -1 or command.find('-iL') != -1: 
    453452                self.toolbar.scan_button.set_sensitive(True) 
    454                 # removes unnecessary target from the command 
     453 
     454                # For these nmap options, target is unecessary. 
     455                # Removes unnecessary target from the command 
    455456                command = command.replace(target,'').strip() 
     457            elif target != self.empty_target: 
     458                self.toolbar.scan_button.set_sensitive(True) 
    456459            else: 
    457460                self.toolbar.scan_button.set_sensitive(False)