Pin notes
| 1452 | |
| 1453 | // Pin notes |
| 1454 | void NTableView::pinNote() { |
| 1455 | QList<qint32> lids; |
| 1456 | ConfigStore cs(global.db); |
| 1457 | getSelectedLids(lids); |
| 1458 | if (lids.size() == 0) |
| 1459 | return; |
| 1460 | |
| 1461 | NoteTable noteTable(global.db); |
| 1462 | for (int i=0; i<lids.size(); i++) { |
| 1463 | noteTable.pinNote(lids[i], true); |
| 1464 | } |
| 1465 | FilterEngine engine; |
| 1466 | engine.filter(); |
| 1467 | refreshData(); |
| 1468 | } |
| 1469 | |
| 1470 | |
| 1471 | // Unpin notes |