#include "owncloudsetupwizard.h"
#include "accountmanager.h"
#include "synclogdialog.h"
-#include "protocolwidget.h"
#include "updater/updater.h"
#include "updater/ocupdater.h"
_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
*/
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()));
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()) {
</item>
<item row="2" column="1">
<layout class="QHBoxLayout" name="horizontalLayout_5">
- <item>
- <widget class="QPushButton" name="openSyncLog">
- <property name="text">
- <string>&Open Synclog</string>
- </property>
- </widget>
- </item>
<item>
<spacer name="horizontalSpacer_5">
<property name="orientation">
<tabstop>newFolderLimitCheckBox</tabstop>
<tabstop>newFolderLimitSpinBox</tabstop>
<tabstop>crashreporterCheckBox</tabstop>
- <tabstop>openSyncLog</tabstop>
<tabstop>restartButton</tabstop>
</tabstops>
<resources/>