Commit 836a6e6f authored by Mehrdad Momeny's avatar Mehrdad Momeny

Little fix to prevent a possible crash!

svn path=/trunk/KDE/kdepim/blogilo/; revision=1076447
parent b0dc3161
......@@ -463,7 +463,10 @@ void MainWindow::sltRemovePostEntry( PostEntry *widget )
{
kDebug();
if( !widget ) {
widget = activePost;
if( activePost )
widget = activePost;
else
return;
}
DBMan::self()->removeTempEntry( *widget->currentPost() );
tabPosts->removePage(widget);
......
......@@ -28,6 +28,7 @@
#include <kxmlguiwindow.h>
#include "bilbopost.h"
#include "bilboblog.h"
#include <QPointer>
class KTabWidget;
class QProgressBar;
......@@ -118,7 +119,7 @@ private:
Toolbox *toolbox;
QDockWidget *toolboxDock;
PostEntry *activePost;
QPointer<PostEntry> activePost;
KSystemTrayIcon *systemTray;
KTabWidget *tabPosts;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment