5 |
5 |
6 """ |
6 """ |
7 Module implementing the Breakpoint viewer widget. |
7 Module implementing the Breakpoint viewer widget. |
8 """ |
8 """ |
9 |
9 |
|
10 import pathlib |
|
11 |
10 from PyQt6.QtCore import ( |
12 from PyQt6.QtCore import ( |
11 pyqtSignal, Qt, QItemSelectionModel, QSortFilterProxyModel, QFileInfo |
13 pyqtSignal, Qt, QItemSelectionModel, QSortFilterProxyModel |
12 ) |
14 ) |
13 from PyQt6.QtWidgets import ( |
15 from PyQt6.QtWidgets import ( |
14 QTreeView, QAbstractItemView, QHeaderView, QMenu, QDialog |
16 QTreeView, QAbstractItemView, QHeaderView, QMenu, QDialog |
15 ) |
17 ) |
16 |
18 |
515 fnHistory.append('') |
517 fnHistory.append('') |
516 rs = Preferences.Prefs.rsettings.value(recentNameBreakpointFiles) |
518 rs = Preferences.Prefs.rsettings.value(recentNameBreakpointFiles) |
517 if rs is not None: |
519 if rs is not None: |
518 recent = [f |
520 recent = [f |
519 for f in Preferences.toList(rs) |
521 for f in Preferences.toList(rs) |
520 if QFileInfo(f).exists()] |
522 if pathlib.Path(f).exists()] |
521 fnHistory.extend( |
523 fnHistory.extend( |
522 recent[:Preferences.getDebugger("RecentNumber")]) |
524 recent[:Preferences.getDebugger("RecentNumber")]) |
523 |
525 |
524 # load recently entered condition expressions |
526 # load recently entered condition expressions |
525 condHistory = [] |
527 condHistory = [] |