couple small changes

This commit is contained in:
RebeccaStankus 2018-01-01 15:29:49 -08:00
parent 06def41764
commit fe82d33b76

View file

@ -99,7 +99,7 @@ LogDialog::LogDialog(QWidget* parent, AbstractLoggerInterface* logger) : BaseLog
_filterDropdown->addItem("hifi.ui"); _filterDropdown->addItem("hifi.ui");
_filterDropdown->addItem("hifi.avatars"); _filterDropdown->addItem("hifi.avatars");
connect(_filterDropdown, SIGNAL(_filterDropdown->currentIndexChanged(int)),this, SLOT(handleFilterDropdownChanged(int))); connect(_filterDropdown, SIGNAL(currentIndexChanged(int)),this, SLOT(handleFilterDropdownChanged(int)));
} }
void LogDialog::resizeEvent(QResizeEvent* event) { void LogDialog::resizeEvent(QResizeEvent* event) {
@ -145,10 +145,11 @@ void LogDialog::handleCriticalPrintBox(int state) {
} }
void LogDialog::handleFilterDropdownChanged(int selection) { void LogDialog::handleFilterDropdownChanged(int selection) {
printf("%s\n", "Handle it!!!!!");
if (selection != 0) { if (selection != 0) {
_filterSelection = "[" + _filterDropdown->currentText + "]"; _filterSelection = "[" + _filterDropdown->currentText() + "]";
printf("%s\n", selection); }
else {
_filterSelection = "";
} }
} }