Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
KDE Pim
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Unmaintained
KDE Pim
Commits
cf7d10dc
Commit
cf7d10dc
authored
Dec 14, 2014
by
Laurent Montel
😁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix Bug 341116 - cannot edit IMAP flags; Save button stays grayed-out
BUG: 341116
parent
d65a518b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
0 deletions
+18
-0
akonadiconsole/browserwidget.cpp
akonadiconsole/browserwidget.cpp
+16
-0
akonadiconsole/browserwidget.h
akonadiconsole/browserwidget.h
+2
-0
No files found.
akonadiconsole/browserwidget.cpp
View file @
cf7d10dc
...
...
@@ -195,6 +195,7 @@ BrowserWidget::BrowserWidget(KXmlGuiWindow *xmlGuiWindow, QWidget * parent) :
connect
(
contentUi
.
saveButton
,
SIGNAL
(
clicked
()),
SLOT
(
save
())
);
splitter3
->
addWidget
(
contentViewParent
);
connect
(
contentUi
.
attrAddButton
,
SIGNAL
(
clicked
()),
SLOT
(
addAttribute
())
);
connect
(
contentUi
.
attrDeleteButton
,
SIGNAL
(
clicked
()),
SLOT
(
delAttribute
())
);
...
...
@@ -220,6 +221,8 @@ BrowserWidget::BrowserWidget(KXmlGuiWindow *xmlGuiWindow, QWidget * parent) :
m_stateMaintainer
->
setView
(
mCollectionView
);
m_stateMaintainer
->
restoreState
();
connect
(
contentUi
.
flags
,
SIGNAL
(
changed
()),
this
,
SLOT
(
slotFlagsChanged
()));
connect
(
contentUi
.
tags
,
SIGNAL
(
changed
()),
this
,
SLOT
(
slotTagsChanged
()));
}
BrowserWidget
::~
BrowserWidget
()
...
...
@@ -227,6 +230,17 @@ BrowserWidget::~BrowserWidget()
m_stateMaintainer
->
saveState
();
}
void
BrowserWidget
::
slotFlagsChanged
()
{
contentUi
.
saveButton
->
setEnabled
(
true
);
}
void
BrowserWidget
::
slotTagsChanged
()
{
contentUi
.
saveButton
->
setEnabled
(
true
);
}
void
BrowserWidget
::
clear
()
{
contentUi
.
stack
->
setCurrentWidget
(
contentUi
.
unsupportedTypePage
);
...
...
@@ -240,6 +254,7 @@ void BrowserWidget::clear()
contentUi
.
flags
->
clear
();
contentUi
.
tags
->
clear
();
contentUi
.
attrView
->
setModel
(
0
);
contentUi
.
saveButton
->
setEnabled
(
false
);
}
void
BrowserWidget
::
itemActivated
(
const
QModelIndex
&
index
)
...
...
@@ -394,6 +409,7 @@ void BrowserWidget::saveResult(KJob * job)
if
(
job
->
error
()
)
{
KMessageBox
::
error
(
this
,
i18n
(
"Failed to save changes: %1"
,
job
->
errorString
()
)
);
}
contentUi
.
saveButton
->
setEnabled
(
false
);
}
void
BrowserWidget
::
addAttribute
()
...
...
akonadiconsole/browserwidget.h
View file @
cf7d10dc
...
...
@@ -75,6 +75,8 @@ class BrowserWidget: public QWidget
void
dumpToXmlResult
(
KJob
*
job
);
void
clear
();
void
updateItemFetchScope
();
void
slotFlagsChanged
();
void
slotTagsChanged
();
private:
Akonadi
::
Collection
currentCollection
()
const
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment