[GME-commit] GMESRC/GME/Gme GMEView.cpp,1.183,1.184

gme-commit at list.isis.vanderbilt.edu gme-commit at list.isis.vanderbilt.edu
Wed Oct 4 17:32:29 CDT 2006


Update of /project/gme-repository/GMESRC/GME/Gme
In directory escher:/tmp/cvs-serv12782

Modified Files:
	GMEView.cpp 
Log Message:
When a connection creation failed in the view, the focus has been left at the Browser, thus the mousecursor has been reverted to the edit mode all the time instead of remaining in autoconnect mode (one additional click was required to get the autoconnect mode cursor).

The symptom still shows up if in autoconnect mode the user specifically leaves the main editing window, e.g. does some mouse operations in the Browser area.




CVS User: Zoltan Molnar, ISIS (zolmol)

Index: GMEView.cpp
===================================================================
RCS file: /project/gme-repository/GMESRC/GME/Gme/GMEView.cpp,v
retrieving revision 1.183
retrieving revision 1.184
diff -C2 -d -r1.183 -r1.184
*** GMEView.cpp	10 Aug 2006 14:28:34 -0000	1.183
--- GMEView.cpp	4 Oct 2006 16:32:26 -0000	1.184
***************
*** 3466,3469 ****
--- 3466,3474 ----
  		ret = false;
  	}
+ 	// error messages output to the console window
+ 	// or simple refreshing of ActiveBrowser might leave
+ 	// the focus set to another window, thus making the
+ 	// connectmode cursor switch back to the normal one
+ 	this->SetFocus();
  	return ret;
  }
***************
*** 3754,3758 ****
  	}
  	else {
!  	 	CGMEDoc *doc = GetDocument();
  		switch(doc->GetEditMode()) {
  		case GME_EDIT_MODE:
--- 3759,3763 ----
  	}
  	else {
! 		CGMEDoc *doc = GetDocument();
  		switch(doc->GetEditMode()) {
  		case GME_EDIT_MODE:



More information about the GME-commit mailing list