summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/tabbar.cpp5
-rw-r--r--src/webpage.cpp3
2 files changed, 8 insertions, 0 deletions
diff --git a/src/tabbar.cpp b/src/tabbar.cpp
index 1274d813..5d6b7b2c 100644
--- a/src/tabbar.cpp
+++ b/src/tabbar.cpp
@@ -186,6 +186,11 @@ void TabBar::showTabPreview(int tab)
void TabBar::mouseMoveEvent(QMouseEvent *event)
{
+ if (count() == 1)
+ {
+ return;
+ }
+
if (event->buttons() & Qt::LeftButton)
{
// hide addNewTabButton when moving tabs
diff --git a/src/webpage.cpp b/src/webpage.cpp
index 45059def..4a8c8b6b 100644
--- a/src/webpage.cpp
+++ b/src/webpage.cpp
@@ -113,6 +113,9 @@ static bool downloadResource (const KUrl& srcUrl, const KIO::MetaData& metaData
do
{
destUrl = KFileDialog::getSaveFileName(fileName, QString(), parent);
+
+ if(destUrl.isEmpty())
+ return false;
if (destUrl.isLocalFile())
{