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
KOrganizer
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Bugzilla
Bugzilla
Labels
Merge Requests
3
Merge Requests
3
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
PIM
KOrganizer
Commits
1d9e2137
Commit
1d9e2137
authored
Apr 11, 2017
by
Volker Krause
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clean up some disabled code
parent
c96f79da
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
49 deletions
+0
-49
src/actionmanager.cpp
src/actionmanager.cpp
+0
-46
src/actionmanager.h
src/actionmanager.h
+0
-3
No files found.
src/actionmanager.cpp
View file @
1d9e2137
...
...
@@ -806,13 +806,6 @@ void ActionManager::writeSettings()
config
->
sync
();
}
/*
void ActionManager::file_new()
{
Q_EMIT actionNewMainWindow();
}
*/
void
ActionManager
::
file_open
()
{
const
QString
defaultPath
=
QStandardPaths
::
writableLocation
(
QStandardPaths
::
GenericDataLocation
)
+
QLatin1String
(
"/korganizer/"
);
...
...
@@ -1021,45 +1014,6 @@ bool ActionManager::saveAsURL(const QUrl &url)
return
success
;
}
#ifdef AKONADI_PORT_DISABLED // can go away, kept for reference
bool
ActionManager
::
saveModifiedURL
()
{
// If calendar isn't modified do nothing.
if
(
!
mCalendarView
->
isModified
())
{
return
true
;
}
mHtmlExportSync
=
true
;
if
(
KOPrefs
::
instance
()
->
mAutoSave
&&
!
mURL
.
isEmpty
())
{
// Save automatically, when auto save is enabled.
return
saveURL
();
}
else
{
int
result
=
KMessageBox
::
warningYesNoCancel
(
dialogParent
(),
i18n
(
"The calendar has been modified.
\n
Do you want to save it?"
),
QString
(),
KStandardGuiItem
::
save
(),
KStandardGuiItem
::
discard
());
switch
(
result
)
{
case
KMessageBox
::
Yes
:
if
(
mURL
.
isEmpty
())
{
QUrl
url
=
getSaveURL
();
return
saveAsURL
(
url
);
}
else
{
return
saveURL
();
}
case
KMessageBox
::
No
:
return
true
;
case
KMessageBox
::
Cancel
:
default:
{
mHtmlExportSync
=
false
;
return
false
;
}
}
}
}
#endif
QUrl
ActionManager
::
getSaveURL
()
{
QUrl
url
=
...
...
src/actionmanager.h
View file @
1d9e2137
...
...
@@ -253,9 +253,6 @@ public Q_SLOTS:
protected
Q_SLOTS
:
void
setItems
(
const
QStringList
&
,
int
);
/** open new window */
//void file_new();
/** open a file, load it into the calendar. */
void
file_open
();
...
...
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