summaryrefslogtreecommitdiffstats
path: root/src/gui/gui.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/gui.cpp')
-rw-r--r--src/gui/gui.cpp11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/gui/gui.cpp b/src/gui/gui.cpp
index 9c9762f..737379b 100644
--- a/src/gui/gui.cpp
+++ b/src/gui/gui.cpp
@@ -70,6 +70,7 @@
#include "qstring.h"
#include "qtextcodec.h"
#include "qtooltip.h"
+#include <QSettings>
extern string user_host;
extern pthread_t thread_id_main;
@@ -77,6 +78,8 @@ extern pthread_t thread_id_main;
// External command arguments
extern t_command_args g_cmd_args;
+extern QSettings* g_gui_state;
+
QString str2html(const QString &s)
{
QString result(s);
@@ -798,10 +801,10 @@ void t_gui::run(void) {
mainWindow->populateBuddyList();
// Set width of window to width of tool bar
- int widthToolBar = mainWindow->callToolbar->width();
- QSize sizeMainWin = mainWindow->size();
- sizeMainWin.setWidth(widthToolBar);
- mainWindow->resize(sizeMainWin);
+ // int widthToolBar = mainWindow->callToolbar->width();
+ // QSize sizeMainWin = mainWindow->size();
+ // sizeMainWin.setWidth(widthToolBar);
+ // mainWindow->resize(sizeMainWin);
// Start QApplication/KApplication
if (qApp->isSessionRestored() &&