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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user