commit 4ca142481eedc0d0250ce8d1b19dc0bb4d0475a0
parent d9dba90e12d93d7dccd64268704ef0845a6127eb
Author: cfillion <cfillion@users.noreply.github.com>
Date: Mon, 20 Jun 2016 21:36:17 -0400
listview: don't show header menu unless the header can be customized
Diffstat:
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/listview.cpp b/src/listview.cpp
@@ -280,7 +280,8 @@ bool ListView::onContextMenu(HWND dialog, int x, int y)
#endif
if(point.y < headerHeight) {
- headerMenu(x, y);
+ if(m_userVersion) // show menu only if header is customizable
+ headerMenu(x, y);
return true;
}
@@ -387,7 +388,7 @@ void ListView::headerMenu(const int x, const int y)
enum { ACTION_RESTORE = 800 };
Menu menu;
- menu.addAction(AUTO_STR("Restore defaults"), ACTION_RESTORE);
+ menu.addAction(AUTO_STR("Reset columns"), ACTION_RESTORE);
const int id = menu.show(x, y, handle());
if(id == ACTION_RESTORE)