Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
KDE PIM Runtime
Commits
1a0d8a55
Commit
1a0d8a55
authored
Nov 02, 2008
by
Bertjan Broeksema
Browse files
Let AgentBase know if network is needed for the configured path.
svn path=/trunk/KDE/kdepim/akonadi/; revision=879154
parent
13700697
Changes
2
Hide whitespace changes
Inline
Side-by-side
resources/shared/singlefileresource.h
View file @
1a0d8a55
...
...
@@ -44,6 +44,8 @@ class SingleFileResource : public SingleFileResourceBase
public:
SingleFileResource
(
const
QString
&
id
)
:
SingleFileResourceBase
(
id
)
{
// The resource needs network when the path refers to a non local file.
setNeedsNetwork
(
!
KUrl
(
Settings
::
self
()
->
path
()
).
isLocalFile
()
);
}
/**
...
...
resources/shared/singlefileresourcebase.cpp
View file @
1a0d8a55
...
...
@@ -76,7 +76,11 @@ void SingleFileResourceBase::collectionChanged(const Akonadi::Collection & colle
void
SingleFileResourceBase
::
reloadFile
()
{
// if we have something loaded already, make sure we write that back in case the settings changed
// Update the network setting.
setNeedsNetwork
(
!
mCurrentUrl
.
isEmpty
()
&&
!
mCurrentUrl
.
isLocalFile
()
);
// if we have something loaded already, make sure we write that back in case
// the settings changed
if
(
!
mCurrentUrl
.
isEmpty
()
)
writeFile
();
readFile
();
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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