Fix case clash dialog sizing issues
authorClaudio Cambra <claudio.cambra@nextcloud.com>
Mon, 5 Dec 2022 13:52:07 +0000 (14:52 +0100)
committerMatthieu Gallien <matthieu.gallien@nextcloud.com>
Wed, 25 Jan 2023 15:37:36 +0000 (16:37 +0100)
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
src/gui/caseclashfilenamedialog.cpp
src/gui/caseclashfilenamedialog.ui

index fffaa69e392fcc5c69a9f0f9239ad5a52eceb7c3..ba4eedeab4922f01ce04b337035f30af41f93e0f 100644 (file)
@@ -95,6 +95,7 @@ CaseClashFilenameDialog::CaseClashFilenameDialog(AccountPtr account,
     _ui->descriptionLabel->setText(tr("The file \"%1\" could not be synced because of a case clash conflict with an existing file on this system.").arg(_originalFileName));
     _ui->explanationLabel->setText(tr("%1 does not support equal file names with only letter casing differences.").arg(QSysInfo::prettyProductName()));
     _ui->filenameLineEdit->setText(filePathFileInfo.fileName());
+    adjustSize();
 
     connect(_ui->buttonBox, &QDialogButtonBox::accepted, this, &QDialog::accept);
     connect(_ui->buttonBox, &QDialogButtonBox::rejected, this, &QDialog::reject);
index f2508cfba21a2f41f073371953ad1f8434e1dc30..07accfeb63d2da877845ed73eb9f941d87df050c 100644 (file)
@@ -6,7 +6,7 @@
    <rect>
     <x>0</x>
     <y>0</y>
-    <width>411</width>
+    <width>658</width>
     <height>192</height>
    </rect>
   </property>
@@ -26,7 +26,7 @@
       <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop</set>
      </property>
      <property name="wordWrap">
-      <bool>false</bool>
+      <bool>true</bool>
      </property>
     </widget>
    </item>