Skip to content

Commit

Permalink
Made tileset tabs no longer closable
Browse files Browse the repository at this point in the history
It's enough that you can remove them using the 'Remove Tileset' button
in the tool bar. The close buttons on the tabs are only taking up
possibly valuable space.
  • Loading branch information
bjorn committed May 12, 2012
1 parent c1e99b5 commit c1b1d80
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/tiled/tilesetdock.cpp
Expand Up @@ -154,16 +154,13 @@ TilesetDock::TilesetDock(QWidget *parent):
{
setObjectName(QLatin1String("TilesetDock"));

mTabBar->setTabsClosable(true);
mTabBar->setMovable(true);
mTabBar->setUsesScrollButtons(true);

connect(mTabBar, SIGNAL(currentChanged(int)),
SLOT(updateActions()));
connect(mTabBar, SIGNAL(currentChanged(int)),
mViewStack, SLOT(setCurrentIndex(int)));
connect(mTabBar, SIGNAL(tabCloseRequested(int)),
this, SLOT(removeTileset(int)));
connect(mTabBar, SIGNAL(tabMoved(int,int)),
this, SLOT(moveTileset(int,int)));

Expand Down

0 comments on commit c1b1d80

Please sign in to comment.