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