def accept(self):
        # Save the settings
        settings = QSettings()
        settings.beginGroup(DigitallyImportedServiceBase.SETTINGS_GROUP)
        settings.setValue("audio_type", self.type.currentIndex)
        settings.setValue("username", self.username.text)
        settings.setValue("password", self.password.text)

        QDialog.done(self, QDialog.Accepted)