From ff4a8c92020e1750efac8e8c50d1dd11a7b93d7e Mon Sep 17 00:00:00 2001 From: Klaas Freitag Date: Wed, 11 Nov 2015 14:49:11 +0100 Subject: [PATCH] GeneralSettings: Remove references to protocolwidget. The ProtocolWidget is now the Activitytab Widget --- src/gui/generalsettings.cpp | 18 ------------------ src/gui/generalsettings.h | 2 -- src/gui/generalsettings.ui | 8 -------- 3 files changed, 28 deletions(-) diff --git a/src/gui/generalsettings.cpp b/src/gui/generalsettings.cpp index 9a745e26a..288d4b193 100644 --- a/src/gui/generalsettings.cpp +++ b/src/gui/generalsettings.cpp @@ -22,7 +22,6 @@ #include "owncloudsetupwizard.h" #include "accountmanager.h" #include "synclogdialog.h" -#include "protocolwidget.h" #include "updater/updater.h" #include "updater/ocupdater.h" @@ -71,8 +70,6 @@ GeneralSettings::GeneralSettings(QWidget *parent) : _ui->crashreporterCheckBox->setVisible(false); #endif - _protocolWidget = new ProtocolWidget; - /* Set the left contents margin of the layout to zero to make the checkboxes * align properly vertically , fixes bug #3758 */ @@ -88,7 +85,6 @@ GeneralSettings::GeneralSettings(QWidget *parent) : connect(_ui->ignoredFilesButton, SIGNAL(clicked()), SLOT(slotIgnoreFilesEditor())); connect(_ui->addAccountButton, SIGNAL(clicked()), SLOT(slotOpenAccountWizard())); - connect(_ui->openSyncLog, SIGNAL(clicked()), SLOT(slotOpenSyncLog())); connect(AccountManager::instance(), SIGNAL(accountAdded(AccountState*)), SLOT(slotAccountAddedOrRemoved())); @@ -156,20 +152,6 @@ void GeneralSettings::slotToggleOptionalDesktopNotifications(bool enable) cfgFile.setOptionalDesktopNotifications(enable); } -void GeneralSettings::slotOpenSyncLog() -{ - // the protocolwidget is connected to the ProgressDispatcher ot collect - // notifications also in case the logwindow is not visible. It is passed - // here to the LogDialog constructor which is not destroyed once created - // except in the destructor here. - if (_syncLogDialog.isNull()) { - _syncLogDialog = new SyncLogDialog(0, _protocolWidget); - _syncLogDialog->open(); - } else { - ownCloudGui::raiseDialog(_syncLogDialog); - } -} - void GeneralSettings::slotIgnoreFilesEditor() { if (_ignoreEditor.isNull()) { diff --git a/src/gui/generalsettings.h b/src/gui/generalsettings.h index d4ac27475..aa28d1155 100644 --- a/src/gui/generalsettings.h +++ b/src/gui/generalsettings.h @@ -20,7 +20,6 @@ namespace OCC { class IgnoreListEditor; class SyncLogDialog; -class ProtocolWidget; namespace Ui { class GeneralSettings; @@ -56,7 +55,6 @@ private: Ui::GeneralSettings *_ui; QPointer _ignoreEditor; QPointer _syncLogDialog; - ProtocolWidget *_protocolWidget; }; diff --git a/src/gui/generalsettings.ui b/src/gui/generalsettings.ui index 81750525a..cf4ba9713 100644 --- a/src/gui/generalsettings.ui +++ b/src/gui/generalsettings.ui @@ -160,13 +160,6 @@ - - - - &Open Synclog - - - @@ -276,7 +269,6 @@ newFolderLimitCheckBox newFolderLimitSpinBox crashreporterCheckBox - openSyncLog restartButton -- 2.30.2