[commit] r2657 - trunk/GME/Gme
GMESRC Repository Notifications
gme-commit at list.isis.vanderbilt.edu
Tue Nov 8 16:25:22 CST 2016
Author: ksmyth
Date: Tue Nov 8 16:25:21 2016
New Revision: 2657
Log:
Quick connect: show src red box immediately
Modified:
trunk/GME/Gme/GMEView.cpp
Modified: trunk/GME/Gme/GMEView.cpp
==============================================================================
--- trunk/GME/Gme/GMEView.cpp Tue Nov 8 16:25:18 2016 (r2656)
+++ trunk/GME/Gme/GMEView.cpp Tue Nov 8 16:25:21 2016 (r2657)
@@ -10983,25 +10983,23 @@
void CGMEView::OnKeyConnect()
{
CGMEEventLogger::LogGMEEvent(_T("CGMEView::OnKeyConnect in ")+path+name+_T("\r\n"));
- if( lastObject) {
- CGuiObject *obj = lastObject;
- if(obj) {
- CGuiPort *port = lastPort;
- if(connSrc == 0) {
- connSrc = obj;
- connSrcPort = port;
- connSrcHotSide = GME_CENTER;
- tmpConnectMode = true;
- SetCursor(autoconnect2Cursor);
- }
- else {
- Connect(connSrc,connSrcPort,connSrcHotSide,obj,port, GME_CENTER, ::GetKeyState(VK_SHIFT) < 0);
- ClearConnSpecs();
- tmpConnectMode = false;
- SetCursor(editCursor);
- }
- ShowCursor(TRUE);
+ if (lastObject) {
+ CGuiPort *port = lastPort;
+ if(connSrc == 0) {
+ connSrc = lastObject;
+ connSrcPort = port;
+ connSrcHotSide = GME_CENTER;
+ tmpConnectMode = true;
+ SetCursor(autoconnect2Cursor);
+ Invalidate();
}
+ else {
+ Connect(connSrc, connSrcPort, connSrcHotSide, lastObject, port, GME_CENTER, ::GetKeyState(VK_SHIFT) < 0);
+ ClearConnSpecs();
+ tmpConnectMode = false;
+ SetCursor(editCursor);
+ }
+ ShowCursor(TRUE);
}
}
More information about the gme-commit
mailing list