summaryrefslogtreecommitdiff
path: root/UMain.pas
diff options
context:
space:
mode:
authorTomas Bzatek <tbzatek@tbzatek.englab.brq.redhat.com>2008-11-12 16:12:07 +0100
committerTomas Bzatek <tbzatek@tbzatek.englab.brq.redhat.com>2008-11-12 16:12:07 +0100
commit0f3794fe20f626fe3641c28f7710aaf128a6d430 (patch)
treecd807c91d5550ebd7925163c3c15756062c42b2a /UMain.pas
parentc64f56fa977eaa96861cd5d8bac03c59552838df (diff)
downloadtuxcmd-0f3794fe20f626fe3641c28f7710aaf128a6d430.tar.xz
Popup menu improvements
Diffstat (limited to 'UMain.pas')
-rw-r--r--UMain.pas5
1 files changed, 3 insertions, 2 deletions
diff --git a/UMain.pas b/UMain.pas
index f7cfea6..f8af9c5 100644
--- a/UMain.pas
+++ b/UMain.pas
@@ -1306,7 +1306,7 @@ begin
Accept := False;
gtk_widget_get_pointer(LeftPanelBox.FWidget, @XLeft, nil);
gtk_widget_get_pointer(RightPanelBox.FWidget, @XRight, nil);
- if (XLeft > LeftPanelBox.Width) and (XRight < 0) then SplitterPopupMenu.PopUp;
+ if (XLeft >= LeftPanelBox.Width) and (XRight < 0) then SplitterPopupMenu.PopUp;
end;
end;
@@ -2782,7 +2782,8 @@ begin
PanelRightMouseInProgress := True;
end;
end;
- end else FilePopupMenu.PopUp;
+ end else
+ if (Item <> nil) then FilePopupMenu.PopUp;
Accept := False;
end;
finally