#include "iconloader.h"
IgnoreListSettingsPage::IgnoreListSettingsPage(QWidget *parent)
- : SettingsPage(tr("Misc"), tr("Ignorelist"), parent)
+ : SettingsPage(tr("IRC"), tr("Ignore List"), parent)
{
ui.setupUi(this);
_delegate = new IgnoreListDelegate(ui.ignoreListView);
void IgnoreListSettingsPage::newIgnoreRule(QString rule) {
IgnoreListManager::IgnoreListItem newItem = IgnoreListManager::IgnoreListItem();
+ newItem.strictness = IgnoreListManager::SoftStrictness;
+ newItem.scope = IgnoreListManager::GlobalScope;
+ newItem.isRegEx = false;
newItem.isActive = true;
+
bool enableOkButton = false;
if(!rule.isEmpty()) {
// we're called from contextmenu
IgnoreListEditDlg *dlg = new IgnoreListEditDlg(newItem, this, enableOkButton);
dlg->enableOkButton(enableOkButton);
-
while(dlg->exec() == QDialog::Accepted) {
if(!_ignoreListModel.newIgnoreRule(dlg->ignoreListItem())) {
if(QMessageBox::warning(this,
ui.setupUi(this);
setAttribute(Qt::WA_DeleteOnClose, false);
setModal(true);
+ // FIXME patch out the bugger completely if it's good without it
+ ui.isActiveCheckBox->hide();
// setup buttongroups
// this could be moved to .ui file with qt4.5
connect(ui.isActiveCheckBox, SIGNAL(stateChanged(int)), this, SLOT(widgetHasChanged()));
connect(ui.buttonBox->button(QDialogButtonBox::Ok), SIGNAL(clicked()), this, SLOT(aboutToAccept()));
+ widgetHasChanged();
}
void IgnoreListEditDlg::widgetHasChanged() {