Skip to content

Commit

Permalink
Fixed bug with 'ignore' files from EditorManager.
Browse files Browse the repository at this point in the history
  • Loading branch information
epasveer committed Jan 30, 2025
1 parent c4374df commit 02e0804
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 3 deletions.
7 changes: 5 additions & 2 deletions src/SeerGdbWidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3400,12 +3400,15 @@ const QStringList& SeerGdbWidget::sourceHeaderFilePatterns () const {

void SeerGdbWidget::setSourceIgnoreFilePatterns (const QStringList& filePatterns) {

sourceLibraryManagerWidget->sourceBrowserWidget()->setIgnoreFilePatterns(filePatterns);
_ignoreFilePatterns = filePatterns;

sourceLibraryManagerWidget->sourceBrowserWidget()->setIgnoreFilePatterns(sourceIgnoreFilePatterns());
editorManager()->setEditorIgnoreDirectories(sourceIgnoreFilePatterns());
}

const QStringList& SeerGdbWidget::sourceIgnoreFilePatterns () const {

return sourceLibraryManagerWidget->sourceBrowserWidget()->ignoreFilePatterns();
return _ignoreFilePatterns;
}

void SeerGdbWidget::setAssemblyShowAssemblyTabOnStartup (bool flag) {
Expand Down
2 changes: 2 additions & 0 deletions src/SeerGdbWidget.h
Original file line number Diff line number Diff line change
Expand Up @@ -414,5 +414,7 @@ class SeerGdbWidget : public QWidget, protected Ui::SeerGdbWidgetForm {

QVector<int> _dataExpressionId;
QVector<QString> _dataExpressionName;

QStringList _ignoreFilePatterns;
};

5 changes: 4 additions & 1 deletion src/SeerUtl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#include <QtCore/QDebug>
#include <QtCore/QRegularExpression>
#include <QtCore/QRegularExpressionMatch>
#include <QtCore/QByteArray>

#include <mutex>

Expand Down Expand Up @@ -710,7 +711,9 @@ namespace Seer {
return false;
}


bool hasWildcards (const QString& str) {
return (str.indexOf('*') >= 0) || (str.indexOf('?') >= 0);
}

QString elideText (const QString& str, Qt::TextElideMode mode, int length) {

Expand Down
1 change: 1 addition & 0 deletions src/SeerUtl.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ namespace Seer {
QStringList quoteChars (const QStringList& strings, const QString& chars);
QString varObjParent (const QString& str);
bool matchesWildcard (const QStringList& regexpatterns, const QString& string);
bool hasWildcards (const QString& str);
QString elideText (const QString& str, Qt::TextElideMode mode, int length);
QStringList split (const QString& str);
QString unescape (const QString& str);
Expand Down

0 comments on commit 02e0804

Please sign in to comment.