Use a signal to connect to a slot in main window.
Coding style fixes. http://gitorious.org/keepassx/keepassx/merge_requests/10
This commit is contained in:
committed by
Felix Geyer
parent
679398be00
commit
d445bf1ecd
@@ -51,9 +51,10 @@ int main(int argc, char** argv)
|
||||
}
|
||||
|
||||
MainWindow mainWindow;
|
||||
app.setMainWindow(&mainWindow);
|
||||
mainWindow.show();
|
||||
|
||||
QObject::connect(&app, SIGNAL(openDatabase(QString)), &mainWindow, SLOT(openDatabase(QString)));
|
||||
|
||||
if (!filename.isEmpty()) {
|
||||
mainWindow.openDatabase(filename, password, QString());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user