From 40c89b3399f4a2c3974c19108942872fcc881ec4 Mon Sep 17 00:00:00 2001 From: kojima Date: Sun, 8 Jun 2003 21:53:00 +0000 Subject: [PATCH] Fix by vlaad to the tableview click callback that was getting bad row info --- WINGs/ChangeLog | 2 ++ WINGs/Extras/wtableview.c | 3 +-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/WINGs/ChangeLog b/WINGs/ChangeLog index 2263ecf8..3a336d28 100644 --- a/WINGs/ChangeLog +++ b/WINGs/ChangeLog @@ -60,6 +60,8 @@ Changes since wmaker 0.80.1: - Fixed a memleak in the file panel. - Double/triple-click selection in text widgets (Vitaly Ovtchinnikov ) +- fixed bug in tableview (clicked row callback got incorrect row) (Carlos Torres + ) Changes since wmaker 0.80.0: ............................ diff --git a/WINGs/Extras/wtableview.c b/WINGs/Extras/wtableview.c index e7df3e70..97126f7e 100644 --- a/WINGs/Extras/wtableview.c +++ b/WINGs/Extras/wtableview.c @@ -1158,12 +1158,11 @@ void WMReloadTableView(WMTableView *table) WMEmptyArray(table->selectedRows); if (table->clickedRow >= 0) { - table->clickedRow = -1; - if (table->action) (*table->action)(table, table->clientData); WMPostNotificationName(WMTableViewSelectionDidChangeNotification, table, NULL); + table->clickedRow = -1; } if (table->delegate && table->delegate->numberOfRows) { -- 2.11.4.GIT