Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 45299
b: refs/heads/master
c: 73b8ed2
h: refs/heads/master
i:
  45297: 00e6b76
  45295: dacce5e
v: v3
  • Loading branch information
Cyrill V. Gorcunov authored and Linus Torvalds committed Jan 6, 2007
1 parent 2a2bbe5 commit cd2cd72
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f2e12bb272f2544d1504f982270e90ae3dcc4ff2
refs/heads/master: 73b8ed29ab3f6ad7204b4e61cfa87dc0c28d3019
12 changes: 10 additions & 2 deletions trunk/scripts/kconfig/qconf.cc
Original file line number Diff line number Diff line change
Expand Up @@ -925,6 +925,8 @@ ConfigInfoView::ConfigInfoView(QWidget* parent, const char *name)
configSettings->endGroup();
connect(configApp, SIGNAL(aboutToQuit()), SLOT(saveSettings()));
}

has_dbg_info = 0;
}

void ConfigInfoView::saveSettings(void)
Expand Down Expand Up @@ -953,10 +955,13 @@ void ConfigInfoView::setInfo(struct menu *m)
if (menu == m)
return;
menu = m;
if (!menu)
if (!menu) {
has_dbg_info = 0;
clear();
else
} else {
has_dbg_info = 1;
menuInfo();
}
}

void ConfigInfoView::setSource(const QString& name)
Expand Down Expand Up @@ -991,6 +996,9 @@ void ConfigInfoView::symbolInfo(void)
{
QString str;

if (!has_dbg_info)
return;

str += "<big>Symbol: <b>";
str += print_filter(sym->name);
str += "</b></big><br><br>value: ";
Expand Down
2 changes: 2 additions & 0 deletions trunk/scripts/kconfig/qconf.h
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,8 @@ public slots:
struct symbol *sym;
struct menu *menu;
bool _showDebug;

int has_dbg_info;
};

class ConfigSearchWindow : public QDialog {
Expand Down

0 comments on commit cd2cd72

Please sign in to comment.