summaryrefslogtreecommitdiff
path: root/core
Side-by-side diff
Diffstat (limited to 'core') (more/less context) (ignore whitespace changes)
-rw-r--r--core/pim/addressbook/contacteditor.cpp19
1 files changed, 10 insertions, 9 deletions
diff --git a/core/pim/addressbook/contacteditor.cpp b/core/pim/addressbook/contacteditor.cpp
index 7682399..0b65a10 100644
--- a/core/pim/addressbook/contacteditor.cpp
+++ b/core/pim/addressbook/contacteditor.cpp
@@ -138,4 +138,6 @@ void ContactEditor::init() {
vb->addWidget( svGeneral, 0, 0 );
svGeneral->setResizePolicy( QScrollView::AutoOneFit );
+ // svGeneral->setHScrollBarMode( QScrollView::AlwaysOff );
+ // svGeneral->setVScrollBarMode( QScrollView::AlwaysOff );
svGeneral->setFrameStyle( QFrame::NoFrame );
@@ -775,13 +777,12 @@ bool ContactEditor::cmbChooserChange( int index, QWidgetStack* inputStack, int w
if ( defaultEmailChooserPosition == widgetPos ){
defaultEmailChooserPosition = -1;
- QComboBox* cmbo = ( QComboBox* ) inputStack -> widget( Combo );
- if ( cmbo ){
- inputStack->raiseWidget( TextField );
- inputStack -> removeWidget( cmbo );
- cmbDefaultEmail = 0l;
- delete cmbo;
- }
-
- }
+ }
+ QComboBox* cmbo = ( QComboBox* ) inputStack -> widget( Combo );
+ if ( cmbo ){
+ inputStack->raiseWidget( TextField );
+ inputStack -> removeWidget( cmbo );
+ cmbDefaultEmail = 0l;
+ delete cmbo;
+ }
// Caller should initialize the responsible textfield, therefore