diff src/folderselectdialog.cpp @ 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 90c297a2a3dd
children 3916cb3c9105
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)