aboutsummaryrefslogtreecommitdiff
path: root/src/forms/profilesdialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/forms/profilesdialog.cpp')
-rw-r--r--src/forms/profilesdialog.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/forms/profilesdialog.cpp b/src/forms/profilesdialog.cpp
index 00e4920..7723683 100644
--- a/src/forms/profilesdialog.cpp
+++ b/src/forms/profilesdialog.cpp
@@ -69,8 +69,8 @@ void ProfilesDialog::loadProfiles()
{
ui->listWidget->clear();
- for(QString name : qApp->profiles()) {
- QListWidgetItem *item = new QListWidgetItem(qApp->profile(name)->name(), ui->listWidget);
+ for(QString name : browser->profiles()) {
+ QListWidgetItem *item = new QListWidgetItem(browser->profile(name)->name(), ui->listWidget);
item->setData(Qt::UserRole, name);
}
}
@@ -81,18 +81,18 @@ void ProfilesDialog::newProfile()
QString name = QInputDialog::getText(this, tr("Profile Name"), tr("Profile Name:"), QLineEdit::Normal, tr("Default"), &ok);
if(ok) {
- qApp->profile(name);
+ browser->profile(name);
loadProfiles();
}
}
void ProfilesDialog::loadSelectedProfile()
{
- m_window->setProfile(qApp->profile(ui->listWidget->currentItem()->data(Qt::UserRole).toString()));
+ m_window->setProfile(browser->profile(ui->listWidget->currentItem()->data(Qt::UserRole).toString()));
}
void ProfilesDialog::viewProfile(int index)
{
- m_view->setProfile(qApp->profile(ui->listWidget->item(index)->data(Qt::UserRole).toString()));
+ m_view->setProfile(browser->profile(ui->listWidget->item(index)->data(Qt::UserRole).toString()));
m_view->show();
}