1
0
mirror of https://github.com/gryf/wmaker.git synced 2026-02-08 17:35:55 +01:00

Fix by vlaad to the tableview click callback that was getting bad row info

This commit is contained in:
kojima
2003-06-08 21:53:00 +00:00
parent 27a396d7ed
commit 40c89b3399
2 changed files with 3 additions and 2 deletions

View File

@@ -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) {