Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: add depend libxcb-xfixes0-dev #2241

Closed
wants to merge 7 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions debian/control
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ Build-Depends:
libpoppler-cpp-dev,
libcryptsetup-dev,
libpcre3-dev,
libxcb-xfixes0-dev (>= 1.10~),
deepin-desktop-base | deepin-desktop-server | deepin-desktop-device
Standards-Version: 3.9.8
Homepage: http://www.deepin.org
Expand Down
5 changes: 2 additions & 3 deletions src/dfm-base/file/local/syncfileinfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -659,10 +659,9 @@ FileInfo::FileType SyncFileInfoPrivate::updateFileType()
const QString &absoluteFilePath = filePath();
const QByteArray &nativeFilePath = QFile::encodeName(absoluteFilePath);
QT_STATBUF statBuffer;
auto fileMode = attribute(DFileInfo::AttributeID::kStandardType).toUInt();
if (fileMode <= 0 || QT_STAT(nativeFilePath.constData(), &statBuffer) != 0)
if (QT_STAT(nativeFilePath.constData(), &statBuffer) != 0)
return fileType;
fileMode = fileMode <= 0 ? statBuffer.st_mode : fileMode;
auto fileMode = statBuffer.st_mode;
if (S_ISDIR(fileMode))
fileType = FileInfo::FileType::kDirectory;
else if (S_ISCHR(fileMode))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -883,7 +883,7 @@ bool FileOperationsEventReceiver::handleOperationOpenFiles(const quint64 windowI
dpfSignalDispatcher->publish(DFMBASE_NAMESPACE::GlobalEventType::kMoveToTrash, windowId, fileHandler.getInvalidPath(), AbstractJobHandler::JobFlag::kNoHint, nullptr);
} else {
// deal open file with custom dialog
dpfSlotChannel->push("dfmplugin_utils", "slot_OpenWith_ShowDialog", windowId, fileHandler.getInvalidPath());
dpfSlotChannel->push("dfmplugin_utils", "slot_OpenWith_ShowDialog", windowId, urls);
ok = true;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -286,12 +286,12 @@ void BasicWidget::basicFill(const QUrl &url)
fileType->setRightValue(info->displayOf(DisPlayInfoType::kMimeTypeDisplayName), Qt::ElideMiddle, Qt::AlignVCenter, true);
if (type == FileInfo::FileType::kDirectory && fileCount && fileCount->RightValue().isEmpty()) {
fileCount->setRightValue(tr("%1 item").arg(0), Qt::ElideNone, Qt::AlignVCenter, true);
connect(fileCalculationUtils, &FileStatisticsJob::dataNotify, this, &BasicWidget::slotFileCountAndSizeChange);
if (info->canAttributes(CanableInfoType::kCanRedirectionFileUrl)) {
fileCalculationUtils->start(QList<QUrl>() << info->urlOf(UrlInfoType::kRedirectedFileUrl));
} else {
fileCalculationUtils->start(QList<QUrl>() << url);
}
connect(fileCalculationUtils, &FileStatisticsJob::dataNotify, this, &BasicWidget::slotFileCountAndSizeChange);
} else {
layoutMain->removeWidget(fileCount);
fieldMap.remove(BasicFieldExpandEnum::kFileCount);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,10 @@ void NormalizedModePrivate::connectCollectionSignals(CollectionHolderPointer col
});
dpfSignalDispatcher->subscribe("ddplugin_background", "signal_Background_BackgroundSetted",
collection->widget(), &CollectionWidget::cacheSnapshot);
connect(collection->widget(), &QWidget::destroyed, this, [](QObject *obj) {
dpfSignalDispatcher->unsubscribe("ddplugin_background", "signal_Background_BackgroundSetted",
obj, &CollectionWidget::cacheSnapshot);
});
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ bool OptionsWindow::initialize()
auto titleBar = new DTitlebar(this);
titleBar->setMenuVisible(false);
titleBar->setBackgroundTransparent(true);
titleBar->setTitle(tr("Desktop options"));
titleBar->setTitle(tr("View options"));
mainLayout->addWidget(titleBar, 0, Qt::AlignTop);

// content
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,8 @@ QLayout *OrganizationGroup::buildTypeLayout()
for (QWidget *wid : list) {
wid->setFixedHeight(kCheckEntryHeight);
gridLayout->addWidget(wid, row, col, Qt::AlignTop);
wid->setVisible(true); // requiring widget to be visible when layout calculates sizehint.
// this line makes the setting widget lose focus, Commenting this line seems to have no effect
// wid->setVisible(true); // requiring widget to be visible when layout calculates sizehint.
++index;
row = index / 3;
col = index % 3;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,9 @@ bool BlockEntryFileEntity::renamable() const
if (datas.value(DeviceProperty::kOpticalDrive).toBool())
return false;

if (datas.value(DeviceProperty::kFileSystem).toString() == "iso9660")
return false;

if (datas.value(DeviceProperty::kIsEncrypted).toBool()
&& datas.value(DeviceProperty::kCleartextDevice).toString() == "/")
return false;
Expand Down
20 changes: 10 additions & 10 deletions translations/dde-file-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -335,20 +335,20 @@
<translation>Unable to find the original file</translation>
</message>
<message>
<location filename="../src/dfm-base/file/local/asyncfileinfo.cpp" line="442"/>
<location filename="../src/dfm-base/file/local/asyncfileinfo.cpp" line="445"/>
<location filename="../src/dfm-base/file/local/asyncfileinfo.cpp" line="441"/>
<location filename="../src/dfm-base/file/local/asyncfileinfo.cpp" line="444"/>
<location filename="../src/dfm-base/file/local/syncfileinfo.cpp" line="480"/>
<source>File has been moved or deleted</source>
<translation>File has been moved or deleted</translation>
</message>
<message>
<location filename="../src/dfm-base/file/local/asyncfileinfo.cpp" line="448"/>
<location filename="../src/dfm-base/file/local/asyncfileinfo.cpp" line="447"/>
<location filename="../src/dfm-base/file/local/syncfileinfo.cpp" line="482"/>
<source>You do not have permission to access this folder</source>
<translation>You do not have permission to access this folder</translation>
</message>
<message>
<location filename="../src/dfm-base/file/local/asyncfileinfo.cpp" line="451"/>
<location filename="../src/dfm-base/file/local/asyncfileinfo.cpp" line="450"/>
<location filename="../src/dfm-base/file/local/syncfileinfo.cpp" line="485"/>
<source>You do not have permission to traverse files in it</source>
<translation>You do not have permission to traverse files in it</translation>
Expand Down Expand Up @@ -889,19 +889,19 @@
<translation> (copy %1)</translation>
</message>
<message>
<location filename="../src/dfm-base/utils/universalutils.cpp" line="84"/>
<location filename="../src/dfm-base/utils/universalutils.cpp" line="107"/>
<location filename="../src/dfm-base/utils/universalutils.cpp" line="88"/>
<location filename="../src/dfm-base/utils/universalutils.cpp" line="111"/>
<location filename="../src/plugins/filemanager/core/dfmplugin-workspace/utils/fileoperatorhelper.cpp" line="98"/>
<source>dde-file-manager</source>
<translation>dde-file-manager</translation>
</message>
<message>
<location filename="../src/dfm-base/utils/universalutils.cpp" line="182"/>
<location filename="../src/dfm-base/utils/universalutils.cpp" line="186"/>
<source>Files are being processed</source>
<translation>Files are being processed</translation>
</message>
<message>
<location filename="../src/dfm-base/utils/universalutils.cpp" line="215"/>
<location filename="../src/dfm-base/utils/universalutils.cpp" line="219"/>
<source>Bit</source>
<translation>Bit</translation>
</message>
Expand Down Expand Up @@ -2124,8 +2124,8 @@
<name>ddplugin_organizer::OptionsWindow</name>
<message>
<location filename="../src/plugins/desktop/ddplugin-organizer/options/optionswindow.cpp" line="90"/>
<source>Desktop options</source>
<translation>Desktop options</translation>
<source>View options</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/plugins/desktop/ddplugin-organizer/options/optionswindow.cpp" line="105"/>
Expand Down
20 changes: 10 additions & 10 deletions translations/dde-file-manager_bo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -335,20 +335,20 @@
<translation>དམིགས་འབེན་ཡིག་ཆའི་འབྲེལ་མཐུད་རྙེད་ཐབས་བྲལ།</translation>
</message>
<message>
<location filename="../src/dfm-base/file/local/asyncfileinfo.cpp" line="442"/>
<location filename="../src/dfm-base/file/local/asyncfileinfo.cpp" line="445"/>
<location filename="../src/dfm-base/file/local/asyncfileinfo.cpp" line="441"/>
<location filename="../src/dfm-base/file/local/asyncfileinfo.cpp" line="444"/>
<location filename="../src/dfm-base/file/local/syncfileinfo.cpp" line="480"/>
<source>File has been moved or deleted</source>
<translation>ཡིག་ཆ་སྤོས་ཟིན་པའམ་བསུབས་ཟིན།</translation>
</message>
<message>
<location filename="../src/dfm-base/file/local/asyncfileinfo.cpp" line="448"/>
<location filename="../src/dfm-base/file/local/asyncfileinfo.cpp" line="447"/>
<location filename="../src/dfm-base/file/local/syncfileinfo.cpp" line="482"/>
<source>You do not have permission to access this folder</source>
<translation>ཁྱོད་ལ་ཡིག་ཁུག་འདི་ཀློག་དབང་མེད།</translation>
</message>
<message>
<location filename="../src/dfm-base/file/local/asyncfileinfo.cpp" line="451"/>
<location filename="../src/dfm-base/file/local/asyncfileinfo.cpp" line="450"/>
<location filename="../src/dfm-base/file/local/syncfileinfo.cpp" line="485"/>
<source>You do not have permission to traverse files in it</source>
<translation>ཁྱོད་ལ་ཡན་ལག་ཡིག་ཆར་ལྟ་སྤྱོད་བྱེད་དབང་མེད།</translation>
Expand Down Expand Up @@ -889,19 +889,19 @@
<translation>(འདྲ་དཔེ།&#xa0;%1)</translation>
</message>
<message>
<location filename="../src/dfm-base/utils/universalutils.cpp" line="84"/>
<location filename="../src/dfm-base/utils/universalutils.cpp" line="107"/>
<location filename="../src/dfm-base/utils/universalutils.cpp" line="88"/>
<location filename="../src/dfm-base/utils/universalutils.cpp" line="111"/>
<location filename="../src/plugins/filemanager/core/dfmplugin-workspace/utils/fileoperatorhelper.cpp" line="98"/>
<source>dde-file-manager</source>
<translation>dde-file-manager</translation>
</message>
<message>
<location filename="../src/dfm-base/utils/universalutils.cpp" line="182"/>
<location filename="../src/dfm-base/utils/universalutils.cpp" line="186"/>
<source>Files are being processed</source>
<translation>ཡིག་ཆ་ཐག་གཅོད་བཞིན་པ།</translation>
</message>
<message>
<location filename="../src/dfm-base/utils/universalutils.cpp" line="215"/>
<location filename="../src/dfm-base/utils/universalutils.cpp" line="219"/>
<source>Bit</source>
<translation>གནས།</translation>
</message>
Expand Down Expand Up @@ -2124,8 +2124,8 @@
<name>ddplugin_organizer::OptionsWindow</name>
<message>
<location filename="../src/plugins/desktop/ddplugin-organizer/options/optionswindow.cpp" line="90"/>
<source>Desktop options</source>
<translation>ཅོག་ངོས་གདམ་ཚན།</translation>
<source>View options</source>
<translation>གདམ་ག་ལ་ལྟ་བ།</translation>
</message>
<message>
<location filename="../src/plugins/desktop/ddplugin-organizer/options/optionswindow.cpp" line="105"/>
Expand Down
20 changes: 10 additions & 10 deletions translations/dde-file-manager_ug.ts
Original file line number Diff line number Diff line change
Expand Up @@ -335,20 +335,20 @@
<translation>ئۇلىنىش نىشان ھۆججىتىنى تاپالمىدى</translation>
</message>
<message>
<location filename="../src/dfm-base/file/local/asyncfileinfo.cpp" line="442"/>
<location filename="../src/dfm-base/file/local/asyncfileinfo.cpp" line="445"/>
<location filename="../src/dfm-base/file/local/asyncfileinfo.cpp" line="441"/>
<location filename="../src/dfm-base/file/local/asyncfileinfo.cpp" line="444"/>
<location filename="../src/dfm-base/file/local/syncfileinfo.cpp" line="480"/>
<source>File has been moved or deleted</source>
<translation>ھۆججەت يۆتكىۋېتىلگەن ياكى ئۆچۈرۈلگەن</translation>
</message>
<message>
<location filename="../src/dfm-base/file/local/asyncfileinfo.cpp" line="448"/>
<location filename="../src/dfm-base/file/local/asyncfileinfo.cpp" line="447"/>
<location filename="../src/dfm-base/file/local/syncfileinfo.cpp" line="482"/>
<source>You do not have permission to access this folder</source>
<translation>بۇ ھۆججەتنى ئوقۇش ھوقۇقىڭىز يوق</translation>
</message>
<message>
<location filename="../src/dfm-base/file/local/asyncfileinfo.cpp" line="451"/>
<location filename="../src/dfm-base/file/local/asyncfileinfo.cpp" line="450"/>
<location filename="../src/dfm-base/file/local/syncfileinfo.cpp" line="485"/>
<source>You do not have permission to traverse files in it</source>
<translation>تارماق ھۆججەتلەرنى كۆرۈش ھوقۇقىڭىز يوق</translation>
Expand Down Expand Up @@ -889,19 +889,19 @@
<translation>(قوشۇمچە %1)</translation>
</message>
<message>
<location filename="../src/dfm-base/utils/universalutils.cpp" line="84"/>
<location filename="../src/dfm-base/utils/universalutils.cpp" line="107"/>
<location filename="../src/dfm-base/utils/universalutils.cpp" line="88"/>
<location filename="../src/dfm-base/utils/universalutils.cpp" line="111"/>
<location filename="../src/plugins/filemanager/core/dfmplugin-workspace/utils/fileoperatorhelper.cpp" line="98"/>
<source>dde-file-manager</source>
<translation>ھۆججەت باشقۇرغۇچ</translation>
</message>
<message>
<location filename="../src/dfm-base/utils/universalutils.cpp" line="182"/>
<location filename="../src/dfm-base/utils/universalutils.cpp" line="186"/>
<source>Files are being processed</source>
<translation>ھۆججەتنى بىر تەرەپ قىلىۋاتىدۇ</translation>
</message>
<message>
<location filename="../src/dfm-base/utils/universalutils.cpp" line="215"/>
<location filename="../src/dfm-base/utils/universalutils.cpp" line="219"/>
<source>Bit</source>
<translation>بىت</translation>
</message>
Expand Down Expand Up @@ -2124,8 +2124,8 @@
<name>ddplugin_organizer::OptionsWindow</name>
<message>
<location filename="../src/plugins/desktop/ddplugin-organizer/options/optionswindow.cpp" line="90"/>
<source>Desktop options</source>
<translation>ئۈستەليۈزى تۈرلىرى</translation>
<source>View options</source>
<translation>تاللانمىلارنى كۆرۈش</translation>
</message>
<message>
<location filename="../src/plugins/desktop/ddplugin-organizer/options/optionswindow.cpp" line="105"/>
Expand Down
20 changes: 10 additions & 10 deletions translations/dde-file-manager_zh_CN.ts
Original file line number Diff line number Diff line change
Expand Up @@ -335,20 +335,20 @@
<translation>无法找到链接目标文件</translation>
</message>
<message>
<location filename="../src/dfm-base/file/local/asyncfileinfo.cpp" line="442"/>
<location filename="../src/dfm-base/file/local/asyncfileinfo.cpp" line="445"/>
<location filename="../src/dfm-base/file/local/asyncfileinfo.cpp" line="441"/>
<location filename="../src/dfm-base/file/local/asyncfileinfo.cpp" line="444"/>
<location filename="../src/dfm-base/file/local/syncfileinfo.cpp" line="480"/>
<source>File has been moved or deleted</source>
<translation>文件已被移动或删除</translation>
</message>
<message>
<location filename="../src/dfm-base/file/local/asyncfileinfo.cpp" line="448"/>
<location filename="../src/dfm-base/file/local/asyncfileinfo.cpp" line="447"/>
<location filename="../src/dfm-base/file/local/syncfileinfo.cpp" line="482"/>
<source>You do not have permission to access this folder</source>
<translation>您没有权限访问该文件夹</translation>
</message>
<message>
<location filename="../src/dfm-base/file/local/asyncfileinfo.cpp" line="451"/>
<location filename="../src/dfm-base/file/local/asyncfileinfo.cpp" line="450"/>
<location filename="../src/dfm-base/file/local/syncfileinfo.cpp" line="485"/>
<source>You do not have permission to traverse files in it</source>
<translation>您没有权限遍历子文件</translation>
Expand Down Expand Up @@ -889,19 +889,19 @@
<translation>(副本 %1)</translation>
</message>
<message>
<location filename="../src/dfm-base/utils/universalutils.cpp" line="84"/>
<location filename="../src/dfm-base/utils/universalutils.cpp" line="107"/>
<location filename="../src/dfm-base/utils/universalutils.cpp" line="88"/>
<location filename="../src/dfm-base/utils/universalutils.cpp" line="111"/>
<location filename="../src/plugins/filemanager/core/dfmplugin-workspace/utils/fileoperatorhelper.cpp" line="98"/>
<source>dde-file-manager</source>
<translation>dde-file-manager</translation>
</message>
<message>
<location filename="../src/dfm-base/utils/universalutils.cpp" line="182"/>
<location filename="../src/dfm-base/utils/universalutils.cpp" line="186"/>
<source>Files are being processed</source>
<translation>正在处理文件</translation>
</message>
<message>
<location filename="../src/dfm-base/utils/universalutils.cpp" line="215"/>
<location filename="../src/dfm-base/utils/universalutils.cpp" line="219"/>
<source>Bit</source>
<translation>位</translation>
</message>
Expand Down Expand Up @@ -2124,8 +2124,8 @@
<name>ddplugin_organizer::OptionsWindow</name>
<message>
<location filename="../src/plugins/desktop/ddplugin-organizer/options/optionswindow.cpp" line="90"/>
<source>Desktop options</source>
<translation>桌面选项</translation>
<source>View options</source>
<translation>视图选项</translation>
</message>
<message>
<location filename="../src/plugins/desktop/ddplugin-organizer/options/optionswindow.cpp" line="105"/>
Expand Down
Loading
Loading