1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-30 18:32:34 +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

@@ -60,6 +60,8 @@ Changes since wmaker 0.80.1:
- Fixed a memleak in the file panel. - Fixed a memleak in the file panel.
- Double/triple-click selection in text widgets (Vitaly Ovtchinnikov - Double/triple-click selection in text widgets (Vitaly Ovtchinnikov
<ov@rbcmail.ru>) <ov@rbcmail.ru>)
- fixed bug in tableview (clicked row callback got incorrect row) (Carlos Torres
<vlaadbrain@operamail.com>)
Changes since wmaker 0.80.0: Changes since wmaker 0.80.0:
............................ ............................

View File

@@ -1158,12 +1158,11 @@ void WMReloadTableView(WMTableView *table)
WMEmptyArray(table->selectedRows); WMEmptyArray(table->selectedRows);
if (table->clickedRow >= 0) { if (table->clickedRow >= 0) {
table->clickedRow = -1;
if (table->action) if (table->action)
(*table->action)(table, table->clientData); (*table->action)(table, table->clientData);
WMPostNotificationName(WMTableViewSelectionDidChangeNotification, WMPostNotificationName(WMTableViewSelectionDidChangeNotification,
table, NULL); table, NULL);
table->clickedRow = -1;
} }
if (table->delegate && table->delegate->numberOfRows) { if (table->delegate && table->delegate->numberOfRows) {