CVS commit by binner: Fix #68399, patch by Friedrich W. H. Kossebau M +8 -1 kprintdialog.cpp 1.74.2.2 --- kdelibs/kdeprint/kprintdialog.cpp #1.74.2.1:1.74.2.2 @@ -700,4 +700,8 @@ bool KPrintDialog::checkOutputFile() return true; + bool anotherCheck; + do + { + anotherCheck = false; QFileInfo f(url.path()); if (f.exists()) @@ -720,6 +724,8 @@ bool KPrintDialog::checkOutputFile() break; case KIO::R_RENAME: - d->m_file->lineEdit()->setText( dlg.newDestURL().path() ); + url = dlg.newDestURL(); + d->m_file->lineEdit()->setText( url.path() ); value = true; + anotherCheck = true; break; } @@ -738,4 +744,5 @@ bool KPrintDialog::checkOutputFile() value = true; } + } while( anotherCheck ); } return value;