← Back to team overview

sikuli-driver team mailing list archive

[Bug 1238546] Re: [1.0.1] IDE: Preview: mouse actions not going to dialog window

 

I found something in the code which may be the cause of the problem. In
org.sikuli.ide.EditorPatternButton.actionPerformed(ActionEvent e)

		if (pwin == null) {
			_offsetSaved = new Location(_offset);
 			_similaritySaved = _similarity;
			 _exactSaved = _similarity >= 0.99f;
 			_imgFilenameSaved = _imgFilename.substring(0);
			 pwin = new PatternWindow(this, _exactSaved, _similarity,
					 _numMatches);
			 pwin.setTargetOffset(_offset);
		 } else {
			pwin.requestFocus();
		}

I think we should not have the else, and rather do it:

                if (pwin == null) {
			_offsetSaved = new Location(_offset);
			_similaritySaved = _similarity;
			_exactSaved = _similarity >= 0.99f;
			_imgFilenameSaved = _imgFilename.substring(0);
			pwin = new PatternWindow(this, _exactSaved, _similarity,
					_numMatches);
			pwin.setTargetOffset(_offset);
		}
		pwin.requestFocus();

-- 
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/1238546

Title:
  [1.0.1] IDE: Preview: mouse actions not going to dialog window

Status in Sikuli:
  In Progress

Bug description:
  I am seeing a problem with the Pattern Settings dialog:
   I click on the image thumbnail to set the screenshot filename and sometimes, all my mouse clicks on this screen end up in the ide rather than the dialog.

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1238546/+subscriptions


References