mirror of
https://github.com/nextcloud/desktop.git
synced 2025-10-26 11:17:43 +00:00
Ignore list editor fixes
This commit is contained in:
parent
b79a45403e
commit
f0d454b511
@ -585,8 +585,13 @@ void AccountSettings::slotUpdateQuota(qint64 total, qint64 used)
|
||||
|
||||
void AccountSettings::slotIgnoreFilesEditor()
|
||||
{
|
||||
IgnoreListEditor *ignoreEditor = new IgnoreListEditor;
|
||||
ignoreEditor->open();
|
||||
if (_ignoreEditor.isNull()) {
|
||||
_ignoreEditor = new IgnoreListEditor(this);
|
||||
_ignoreEditor->setAttribute( Qt::WA_DeleteOnClose, true );
|
||||
_ignoreEditor->open();
|
||||
} else {
|
||||
Utility::raiseDialog(_ignoreEditor);
|
||||
}
|
||||
}
|
||||
|
||||
void AccountSettings::slotInfoAboutCurrentFolder()
|
||||
|
||||
@ -38,6 +38,7 @@ class AccountSettings;
|
||||
|
||||
class FolderMan;
|
||||
class FileItemDialog;
|
||||
class IgnoreListEditor;
|
||||
|
||||
class AccountSettings : public QWidget
|
||||
{
|
||||
@ -88,6 +89,7 @@ private:
|
||||
|
||||
Ui::AccountSettings *ui;
|
||||
QPointer<FileItemDialog> _fileItemDialog;
|
||||
QPointer<IgnoreListEditor> _ignoreEditor;
|
||||
FolderMan *_folderMan;
|
||||
QStandardItemModel *_model;
|
||||
QListWidgetItem *_item;
|
||||
|
||||
@ -26,7 +26,7 @@
|
||||
|
||||
namespace Mirall {
|
||||
|
||||
IgnoreListEditor::IgnoreListEditor(QDialog *parent) :
|
||||
IgnoreListEditor::IgnoreListEditor(QWidget *parent) :
|
||||
QDialog(parent),
|
||||
ui(new Ui::IgnoreListEditor)
|
||||
{
|
||||
|
||||
@ -29,7 +29,7 @@ class IgnoreListEditor : public QDialog
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit IgnoreListEditor(QDialog *parent = 0);
|
||||
explicit IgnoreListEditor(QWidget *parent = 0);
|
||||
~IgnoreListEditor();
|
||||
|
||||
private slots:
|
||||
|
||||
@ -11,7 +11,7 @@
|
||||
</rect>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string>Form</string>
|
||||
<string>Ignored Files Editor</string>
|
||||
</property>
|
||||
<layout class="QGridLayout" name="gridLayout">
|
||||
<item row="0" column="0">
|
||||
|
||||
Loading…
Reference in New Issue
Block a user