From fd281a464cf37c99f965717c494a65c1d9870f42 Mon Sep 17 00:00:00 2001 From: Klaus Basan Date: Fri, 24 May 2019 14:44:30 +0200 Subject: [PATCH] Always allow vertical resize in case we change from word wrap to non word-wrap --- src/blackgui/views/viewbasenontemplate.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/blackgui/views/viewbasenontemplate.cpp b/src/blackgui/views/viewbasenontemplate.cpp index b9cbe9d05..38d47c173 100644 --- a/src/blackgui/views/viewbasenontemplate.cpp +++ b/src/blackgui/views/viewbasenontemplate.cpp @@ -424,9 +424,9 @@ namespace BlackGui // when not set to auto, then lets set how we want to resize rows // for auto this is too slow - const bool ww = this->wordWrap(); + // const bool ww = this->wordWrap(); QAction *resizeRowsAction = menuActions.addAction(CIcons::resizeVertical16(), "Resize rows to content", CMenuAction::pathViewResize(), nullptr, { this, &CViewBaseNonTemplate::resizeRowsToContents }); - resizeRowsAction->setEnabled(ww); + resizeRowsAction->setEnabled(true); // as changing from word wraap to none word wrap can leave to high columns, we always enable this /** QAction *a1 = menuActions.addAction(CIcons::resizeVertical16(), "Resize rows to content (auto), can be slow", CMenuAction::pathViewResize(), nullptr, { this, &CViewBaseNonTemplate::rowsResizeModeToContent });