mirror of
https://github.com/gryf/wmaker.git
synced 2026-01-07 14:24:14 +01:00
Fix by vlaad to the tableview click callback that was getting bad row info
This commit is contained in:
@@ -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
|
||||
<ov@rbcmail.ru>)
|
||||
- fixed bug in tableview (clicked row callback got incorrect row) (Carlos Torres
|
||||
<vlaadbrain@operamail.com>)
|
||||
|
||||
Changes since wmaker 0.80.0:
|
||||
............................
|
||||
|
||||
@@ -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