summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2014-08-16 00:11:17 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2014-08-16 00:11:17 +0900
commit29bee6b5289028aeee68dad953e9afab7b9244b5 (patch)
tree1f92b3fd2d6056892c0600e9f2eb3b0017ad0181 /src
parentc651cf806b9dda422fb6d2592ac13aa856968b3d (diff)
downloadbasket-29bee6b5289028aeee68dad953e9afab7b9244b5.tar.gz
basket-29bee6b5289028aeee68dad953e9afab7b9244b5.zip
Patched "TQPopupMenu: (unnamed) Popup has invalid menu item" warning
message appearance when Basket is started without a basketrc file. This resolves bug 1981."
Diffstat (limited to 'src')
-rw-r--r--src/main.cpp2
-rw-r--r--src/mainwindow.cpp9
2 files changed, 6 insertions, 5 deletions
diff --git a/src/main.cpp b/src/main.cpp
index dfdb1a6..f5f8441 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -86,8 +86,6 @@ int main(int argc, char *argv[])
MainWindow* win = new MainWindow();
Global::bnpView->handleCommandLine();
app.setMainWidget(win);
-// if (!(Settings::useSystray() && TDECmdLineArgs::parsedArgs() && TDECmdLineArgs::parsedArgs()->isSet("start-hidden")))
-// win->show();
if (Settings::useSystray()) {
// The user wanted to not show the window (but it is already hidden by default, so we do nothing):
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index 1331ce0..09a3e5d 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -107,14 +107,17 @@ MainWindow::MainWindow(TQWidget *parent, const char *name)
m_baskets = new BNPView(this, "BNPViewApp", this, actionCollection(), bar);
setCentralWidget(m_baskets);
+ // Do not remove. This call to 'resize' prevents the appearance of annoying
+ // warning messages if basket is started without a basketrc config file
+ resize(450, 360);
+
setupActions();
statusBar()->show();
statusBar()->setSizeGripEnabled(true);
- setAutoSaveSettings(/*groupName=*/TQString::fromLatin1("MainWindow"), /*saveWindowSize=*//*FIXME:false:Why was it false??*/true);
+ setAutoSaveSettings(/*groupName=*/TQString::fromLatin1("MainWindow"),true);
-// m_actShowToolbar->setChecked( toolBar()->isShown() );
- m_actShowStatusbar->setChecked( statusBar()->isShown() );
+ m_actShowStatusbar->setChecked( statusBar()->isShown() );
connect( m_baskets, TQT_SIGNAL(setWindowCaption(const TQString &)), this, TQT_SLOT(setCaption(const TQString &)));
// InlineEditors::instance()->richTextToolBar();