aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui/main_window/MainWindowUI.cpp
diff options
context:
space:
mode:
authorSaturneric <[email protected]>2021-07-14 18:01:59 +0000
committerSaturneric <[email protected]>2021-07-14 18:01:59 +0000
commit74fc3e78aadec387f561811b496061440e70cf82 (patch)
treeb7cc8483042dff1dc6f5269095a17e1750009d3d /src/ui/main_window/MainWindowUI.cpp
parentMerge from github/main. (diff)
parentUpdate documentation (diff)
downloadGpgFrontend-74fc3e78aadec387f561811b496061440e70cf82.tar.gz
GpgFrontend-74fc3e78aadec387f561811b496061440e70cf82.zip
Merge branch 'develop' into main
# Conflicts: # README.md # docs/quick-start.md
Diffstat (limited to '')
-rw-r--r--src/ui/main_window/MainWindowUI.cpp22
1 files changed, 0 insertions, 22 deletions
diff --git a/src/ui/main_window/MainWindowUI.cpp b/src/ui/main_window/MainWindowUI.cpp
index 0f7f1040..21f6e3b7 100644
--- a/src/ui/main_window/MainWindowUI.cpp
+++ b/src/ui/main_window/MainWindowUI.cpp
@@ -447,26 +447,4 @@ void MainWindow::createDockWindows() {
infoBoardDock->setWidget(infoBoard);
infoBoardDock->widget()->layout()->setContentsMargins(0, 0, 0, 0);
viewMenu->addAction(infoBoardDock->toggleViewAction());
-
- /* Attachments-Dockwindow
- */
- if (settings.value("mime/parseMime").toBool()) {
- createAttachmentDock();
- }
-}
-
-void MainWindow::createAttachmentDock() {
- if (attachmentDockCreated) {
- return;
- }
- mAttachments = new Attachments();
- attachmentDock = new QDockWidget(tr("Attached files:"), this);
- attachmentDock->setObjectName("AttachmentDock");
- attachmentDock->setAllowedAreas(Qt::LeftDockWidgetArea | Qt::RightDockWidgetArea | Qt::BottomDockWidgetArea);
- addDockWidget(Qt::LeftDockWidgetArea, attachmentDock);
- attachmentDock->setWidget(mAttachments);
- // hide till attachment is decrypted
- viewMenu->addAction(attachmentDock->toggleViewAction());
- attachmentDock->hide();
- attachmentDockCreated = true;
}