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
Plasma Vault
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
1
Merge Requests
1
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
Plasma
Plasma Vault
Commits
17b832fb
Commit
17b832fb
authored
Jan 10, 2018
by
Ivan Čukić
👁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Store the last error in the config file along with the error status
parent
c13ca3b8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
kded/engine/vault.cpp
kded/engine/vault.cpp
+4
-2
No files found.
kded/engine/vault.cpp
View file @
17b832fb
...
...
@@ -47,6 +47,7 @@
#define CFG_NAME "name"
#define CFG_LAST_STATUS "lastStatus"
#define CFG_LAST_ERROR "lastError"
#define CFG_MOUNT_POINT "mountPoint"
#define CFG_BACKEND "backend"
#define CFG_ACTIVITIES "activities"
...
...
@@ -133,8 +134,6 @@ public:
org
::
kde
::
KDirNotify
::
emitFilesAdded
(
QUrl
::
fromLocalFile
(
data
->
mountPoint
.
data
()));
config
->
sync
();
}
else
{
emit
q
->
isOpenedChanged
(
false
);
emit
q
->
isInitializedChanged
(
false
);
...
...
@@ -145,6 +144,9 @@ public:
KConfigGroup
vaultConfig
(
config
,
device
.
data
());
vaultConfig
.
writeEntry
(
CFG_LAST_STATUS
,
(
int
)
VaultInfo
::
Error
);
vaultConfig
.
writeEntry
(
CFG_LAST_ERROR
,
data
.
error
().
message
()
+
" (code: "
+
QString
::
number
(
data
.
error
().
code
())
+
")"
);
// vaultConfig.deleteEntry(CFG_MOUNT_POINT);
// vaultConfig.deleteEntry(CFG_NAME);
// vaultConfig.deleteEntry(CFG_BACKEND);
...
...
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