Bug 134534 - Cannot close image tab
Summary: Cannot close image tab
Status: RESOLVED FIXED
Alias: None
Product: quanta
Classification: Miscellaneous
Component: general (show other bugs)
Version: unspecified
Platform: Debian testing Linux
: NOR normal
Target Milestone: ---
Assignee: András Manţia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-09-23 14:22 UTC by Jimmy
Modified: 2007-01-09 21:46 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jimmy 2006-09-23 14:22:58 UTC
Version:           3.5.4 (using KDE KDE 3.5.4)
Installed from:    Debian testing/unstable Packages
Compiler:          GCC 4.0 (as far as I remember) 
OS:                Linux

If I have no documents open in Quanta, and opens an image, it will not let me close the tab - but I'm able to open a text-document, which will open on top of the image, which then disappears. The opposite happens when opening an image on top of a text-document. The text-document disappears. This might be on purpose - but it sure ain't logical. Either it should not be possible to open images at all, otherwise it should open in a pop-up or in a seperate tab that can be closed, and don't interact with already open tabs.
Comment 1 András Manţia 2007-01-09 21:46:25 UTC
SVN commit 621820 by amantia:

Allow closing of an untitle editor tab when an image is previewed inside.
BUG: 134534

 M  +1 -0      ChangeLog  
 M  +3 -0      src/viewmanager.cpp  


--- branches/KDE/3.5/kdewebdev/quanta/ChangeLog #621819:621820
@@ -9,6 +9,7 @@
       - don't lose upload profile settings in certain cases
       - fix symlink handling in Project Rescan, New Project adding files/folders [#138107]
       - do not set the current project mark to a project that could not be opened [#137186]
+      - allow closing of an untitle editor tab when an image is previewed inside [#134534]
 
 Version 3.5.5 (Release date: 11-10-2006; Started 01-09-2006):
  - bugfixes:
--- branches/KDE/3.5/kdewebdev/quanta/src/viewmanager.cpp #621819:621820
@@ -164,7 +164,10 @@
     }
     delete it;
     if (noOfViews == 1 && view->document()->isUntitled() && !view->document()->isModified() && createNew)
+    {
+      quantaApp->slotShowPreviewWidget(false);
       return true;
+    }
     bool mayRemove = view->mayRemove();
     if (mayRemove)
     {