Skip to main content
ALT Linux Bugzilla
– Attachment 22889 Details for
Bug 61381
Сегфолт диалога открытия файла при выборе текущей папки
New bug
|
Search
|
[?]
|
Help
Register
|
Log In
[x]
|
Forgot Password
Login:
[x]
|
EN
|
RU
Частичное решение
file_61381.txt (text/plain), 1.11 KB, created by
Valery Zabrovsky
on 2026-11-09 17:14:14 MSK
(
hide
)
Description:
Частичное решение
Filename:
MIME Type:
Creator:
Valery Zabrovsky
Created:
2026-11-09 17:14:14 MSK
Size:
1.11 KB
patch
obsolete
>diff --git a/qtdeclarative/src/quickdialogs/quickdialogsquickimpl/qquickfiledialogimpl.cpp b/qtdeclarative/src/quickdialogs/quickdialogsquickimpl/qquickfiledialogimpl.cpp >index 51493f883..860c4b5f7 100644 >--- a/qtdeclarative/src/quickdialogs/quickdialogsquickimpl/qquickfiledialogimpl.cpp >+++ b/qtdeclarative/src/quickdialogs/quickdialogsquickimpl/qquickfiledialogimpl.cpp >@@ -97,7 +97,9 @@ void QQuickFileDialogImplPrivate::updateSelectedFile(const QString &oldFolderPat > // /foo/bar/baz/abc/xyz > // [rel...Paths] > QStringList relativePaths = oldFolderPath.mid(indexOfFolder + newFolderPath.size()).split(QLatin1Char('/'), Qt::SkipEmptyParts); >- newSelectedFilePath = newFolderPath + QLatin1Char('/') + relativePaths.first(); >+ newSelectedFilePath = newFolderPath; >+ if (relativePaths.size() > 0) >+ newSelectedFilePath += QLatin1Char('/') + relativePaths.first(); > > // Now find the index of that directory so that we can set the ListView's currentIndex to it. > const QDir newFolderDir(newFolderPath);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 61381
: 22889 |
22897