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
b723476b
Commit
b723476b
authored
Apr 26, 2014
by
David Faure
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Port from queryExit to closeEvent, since there's always only one mainwindow.
Reviewed by Laurent Montel
parent
03c2a2d4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
blogilo/src/mainwindow.cpp
blogilo/src/mainwindow.cpp
+2
-2
blogilo/src/mainwindow.h
blogilo/src/mainwindow.h
+1
-1
No files found.
blogilo/src/mainwindow.cpp
View file @
b723476b
...
...
@@ -187,7 +187,7 @@ void MainWindow::slotCloseTabClicked()
}
}
bool
MainWindow
::
queryExit
(
)
void
MainWindow
::
closeEvent
(
QCloseEvent
*
event
)
{
writeConfigs
();
if
(
!
DBMan
::
self
()
->
clearTempEntries
()
)
...
...
@@ -200,7 +200,7 @@ bool MainWindow::queryExit()
DBMan
::
self
()
->
saveTempEntry
(
*
pst
->
currentPost
(),
pst
->
currentPostBlogId
());
}
}
return
true
;
event
->
accept
()
;
}
void
MainWindow
::
setupActions
()
...
...
blogilo/src/mainwindow.h
View file @
b723476b
...
...
@@ -112,7 +112,7 @@ private slots:
protected:
void
keyPressEvent
(
QKeyEvent
*
event
);
v
irtual
bool
queryExit
(
);
v
oid
closeEvent
(
QCloseEvent
*
event
);
private:
void
setCurrentBlog
(
int
blog_id
);
...
...
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