def _save(self):
        matches = []
        for i in range(self._table.rowCount()):
            matches.append({
                'match': str(self._table.item(i, 0).text().trimmed()),
                'regex': self._table.cellWidget(i, 1).isChecked()
            })

        self._mainFrame.setSettings("matches", matches)

        alertsSettings = {
            "notify_ping": self._notifyOnPingField.isChecked(),
            "notify_inactive_tab": self._notifyOnInactiveTabField.isChecked(),
            "notify_blink": self._notifyBlinkField.isChecked(),
            "notify_notify": self._notifyNotifyField.isChecked()
        }
        self._mainFrame.setSettings("alerts", alertsSettings)