Skip to content

Commit

Permalink
OptionsTabChat::restoreOptions(): Make ck_tabChats setting more obvio…
Browse files Browse the repository at this point in the history
…usly correct, the old code might be fine, but this is easier to understand
  • Loading branch information
Martin H authored and Martin H committed Nov 2, 2008
1 parent 316d25b commit 9f90158
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion src/options/opt_chat.cpp
Expand Up @@ -174,9 +174,9 @@ void OptionsTabChat::restoreOptions()
d->ck_alertOpenChats->setChecked( PsiOptions::instance()->getOption("options.ui.chat.alert-for-already-open-chats").toBool() );
d->ck_raiseChatWindow->setChecked( PsiOptions::instance()->getOption("options.ui.chat.raise-chat-windows-on-new-messages").toBool() );
d->ck_smallChats->setChecked( PsiOptions::instance()->getOption("options.ui.chat.use-small-chats").toBool() );
d->ck_tabChats->setChecked( PsiOptions::instance()->getOption("options.ui.tabs.use-tabs").toBool() );
if(PsiOptions::instance()->getOption("options.ui.tabs.use-tabs").toBool()) {
d->cb_tabGrouping->setEnabled(true);
d->ck_tabChats->setChecked( PsiOptions::instance()->getOption("options.ui.tabs.use-tabs").toBool() );
} else {
d->cb_tabGrouping->setEnabled(false);
}
Expand Down
1 change: 0 additions & 1 deletion src/tabs/tabdlg.cpp
Expand Up @@ -600,7 +600,6 @@ void TabDlg::dropEvent(QDropEvent *event)
PsiTabBar* source = dynamic_cast<PsiTabBar*>(event->source());
if (source) {
PsiTabWidget* barParent = source->psiTabWidget();
if (remoteTab >= barParent->count()) return;
QWidget* widget = barParent->widget(remoteTab);
TabbableWidget* chat = dynamic_cast<TabbableWidget*>(widget);
TabDlg *dlg = tabManager_->getManagingTabs(chat);
Expand Down

0 comments on commit 9f90158

Please sign in to comment.