changeset 86:a32406f8832f

Fix resize to contents in folderselection
author Andre Heinecke <andre.heinecke@intevation.de>
date Thu, 18 Jun 2015 19:35:07 +0200
parents 6fa321b3dfe7
children 3b3a1384eb5f
files src/folderselectdialog.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/folderselectdialog.cpp	Thu Jun 18 19:34:23 2015 +0200
+++ b/src/folderselectdialog.cpp	Thu Jun 18 19:35:07 2015 +0200
@@ -121,7 +121,6 @@
     mView = new QTableView;
     mView->setModel(mSortModel);
 
-    mView->resizeColumnsToContents();
     mView->setSelectionBehavior(QAbstractItemView::SelectRows);
     mView->setSelectionMode(QAbstractItemView::SingleSelection);
     mView->setSortingEnabled(true);
@@ -212,6 +211,7 @@
         errMsg += "\n" + errors.join("\n");
         QMessageBox::warning(this, tr("Failed to parse some folders."), errMsg);
     }
+    mView->resizeColumnsToContents();
 }
 
 void FolderSelectDialog::wantToAccept() {
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)